How Can We Help?
How to configure SSH keys using cPanel
This article describes how to create and deploy SSH keys using cPanel. With SSH keys, you can automate logins to your XauZit Cloud account, or use two-factor authentication for increased security.
Using SSH keys
When you log in to your account interactively using an SSH client as described in this article, you must enter a password every time. But what if you want to run an automated process? Perhaps you want to automatically download a database backup at certain times to your local computer. In this scenario, you don’t want to have to manually type your SSH password every time the backup process runs.
Or what if you want to allow multiple users to transfer files securely using SFTP, as described in this article? You would need to give them your cPanel password, which would give them complete access to your account.
You can solve these problems by using SSH keys to connect to your account. SSH keys enable your computer to log in to your XauZit Cloud account automatically without you typing a password. To use SSH keys, you must first create a public key and private key (also known as a key pair). The client’s private key stays on your local computer, while the public key resides on the XauZit Cloud server.
Alternatively, you can also create SSH keys and protect them with a passphrase for two-factor authentication. Although this configuration does not enable automatic logins, it does provide an extra layer of security, because you must have the correct key file and know the correct passphrase to access the account.
Configuring SSH keys in cPanel
When you configure SSH keys in cPanel, you can create a new key pair, or import an existing key.
Option #1: Generating a new key
To generate a new SSH key pair for your account, follow these steps:
- Log in to cPanel.
- Open the SSH Access tool:
- If you are using the Jupiter theme, on the Tools page, in the Security section, click SSH Access:

- If you are using the Paper Lantern theme, in the Security section, click SSH Access
![]()
- On the SSH Access page, under Manage SSH Keys, clickManage SSH Keys.
- Click Generate a New Key.
- Confirm the Key Name is set to id_rsa.
- In the Key Password and Reenter Password text boxes, type a password for the key. Alternatively, you can click Password Generator and cPanel generates a strong password for you.
- Confirm the Key Type is set to RSA.
- Confirm the Key Size is set to 2048.
- Click Generate Key. cPanel generates the public and private keys and saves them in the /home/username/.ssh directory, where usernamerepresents your XauZit Cloud account username.
- Click Go Back.
- Under Public Keys, locate the name of the key you just created. Under Actions, click Manage.
- Click Authorize, and then click Go Back. To connect to your account using the new key, read Connecting to your account using the SSH keys below.
Option #2: Importing an existing key
If you have already generated SSH keys for your account and want to re-use them, you can use cPanel to import them. To do this, follow these steps:
- Log in to cPanel.
- Open the SSH Access tool:
- If you are using the Jupiter theme, on the Tools page, in the Security section, click SSH Access:

- If you are using the Paper Lantern theme, in the Security section, click SSH Access:
![]()
- On the SSH Access page, under Manage SSH Keys, click Manage SSH Keys.
- Click Import Key.
- In the Choose a name for this key (defaults to id_dsa) text box, type the name for the key.
- Under Paste the public key into the following text box, paste the text of the public key into the text box.
- Click Import. cPanel imports the key.
- Click Back to Manage Keys.
- Under Public Keys, locate the name of the key you just imported. Under Actions, click Manage.
- Click Authorize, and then click Go Back. To connect to your account using the new key, read Connecting to your account using the SSH keys below.
Connecting to your account using the SSH keys
Use the appropriate procedure below for your computer’s operating system.
Windows operating systems
For computers running Microsoft Windows, you can use the PuTTY program to connect to your XauZit Cloud account with SSH keys. Alternatively, Windows 10 includes a native SSH client that you can use, without the need to install and configure an additional program.
Using PuTTY
Before you can connect to your account, you must deploy the private key to your local computer (unless you imported a public key into cPanel, in which case you presumably already have the private key on your computer). To do this, follow these steps:
- Log in to cPanel.
- Open the SSH Access tool:
- If you are using the Jupiter theme, on the Tools page, in the Security section, click SSH Access:

- If you are using the Paper Lantern theme, in the Security section, click SSH Access:
![]()
- On the SSH Access page, under Manage SSH Keys, click Manage SSH Keys.
- On the SSH Access page, under Private Keys, locate the name of the key you created, and then click View/Download.
- Under Convert the “id_rsa” key to PPK format, click Convert. cPanel converts the key.
- Click Download Key, and then save the id_rsa.ppk file on your local computer. Make sure you note where the file is saved on your computer.
At this point, you have created the SSH key pair and deployed the private key to your local computer. You are now ready to configure the PuTTY client to connect to your SSH account using the private key.
To configure PuTTY to use your private key, follow these steps:
- Start PuTTY.
- In the Category pane, expand SSH, and then click Auth.
- Under Authentication Parameters, click Browse.
- Locate the id_rsa.ppk file that you created in the previous procedure.
- In the Category pane, click Session.
- In the Host Name (or IP address) text box, type username@example.com. Replace username with your XauZit Cloud username, and replace example.com with your site’s domain name.
- In the Port text box, type 7822.
- Confirm that the Connection type radio button is set to SSH.
- In the Saved Sessions text box, type a name for the connection. For example, type XauZit Cloud account.
- Click Save.
- To connect to your SSH account, double-click the connection name in the list. PuTTY should connect without asking you to type your account password. If you set a passphrase for the key, however, you must type the key passphrase.
Using the native Windows SSH client
To use the built-in Windows 10 SSH client to connect to your account using a key, follow these steps:
- Log in to cPanel.
- Open the SSH Access tool:
- If you are using the Jupiter theme, on the Tools page, in the Security section, click SSH Access:

If you are using the Paper Lantern theme, in the Security section, click SSH Access:
![]()
- On the SSH Access page, under Manage SSH Keys, click Manage SSH Keys.
- On the SSH Access page, under Private Keys, locate the name of the key you created, and then click View/Download.
- Click Download Key, and then save the id_rsa file on your local computer. You are now ready to start the SSH client and use the key.
- To open the Run dialog box, type Windows key + r.
- In the Run dialog box, type cmd and then click OK to open a command prompt window.
- At the command prompt, type the following command. Replace username with your XauZit Cloud username, and replace example.com with your site’s domain name:
ssh -p 7822 username@example.com
- If this is the first time you are connecting to the server, you receive a message about the key fingerprint. Type yes and then press Enter.
-
- When you are connected, the remote server’s command line prompt appears:
username@hostname [~]#
- You can now run commands on the remote server. For example, to see a listing of the current directory, type ls and then press Enter.
- To close the SSH connection when you are done, type exit and then press Enter.
- To close the command prompt window, type exit and then press Enter.
Mac OS X and Linux operating systems
Before you can connect to your account, you must deploy the private key to your local computer (unless you imported a public key into cPanel, in which case you presumably already have the private key on your computer). To do this, follow these steps:
- Log in to cPanel.
- Open the SSH Access tool:
- If you are using the Jupiter theme, on the Tools page, in the Security section, click SSH Access:

- If you are using the Paper Lantern theme, in the Security section, click SSH Access:
![]()
- On the SSH Access page, under Manage SSH Keys, click Manage SSH Keys>.
- On the SSH Access page, under Private Keys, locate the name of the key you created, and then click View/Download.
- Click Download Key, and then save the id_rsa file on your local computer in the /home/username/.ssh directory. Replace username with your own username.
At this point, you have created the SSH key pair and deployed the private key to your local computer. You are now ready to connect to your SSH account using the keys.
To connect to your SSH account using the keys, follow these steps:
- Open a terminal window. The procedure to do this depends on the operating system and desktop environment.
- On Mac OS X, click Applications, click Utilities, and then click Terminal.
- At the command prompt, type the following command. Replace username with your XauZit Cloud username, and replace example.com with your site’s domain name:
ssh -p 7822 username@example.com
-
- The SSH client should connect without asking you to type your account password. If you set a passphrase for the key, however, you must type the key passphrase.

