You are currently viewing How may I log in to my cPanel account using SSH Key?

SSH login using an SSH key is the most secure way to log in to an SSH session. You may simply want a way to secure your server interaction or disable the SSH password login option on your server altogether. Whatever the reason, you may log in to your cPanel account using the SSH key. But also keep in mind that, to access SSH, you need to enable SSH login access for your cPanel account by contacting your hosting provider.

If you have bought hosting from us, open a support ticket to request SSH access for your cPanel account. Now, to set up SSH Key login, follow these steps:

1. First, log in to your cPanel and click on the “SSH Access” icon from the “Security” section.

How can I generate SSL from cPanel with AutoSSL?

hello

2. Now click on the â€œManage SSH Keys” button and click on the â€œGenerate a New Key” button to generate a new key.

54

3. Type any name in the â€œKey Name” field.

Type Secure Password instead of Key Password and Reenter Password or generate the password by clicking on the â€œPassword Generator” button and save it.

55
59

4. Clicking on the â€œGenerate Key” button without changing anything else will create an SSH Key. Now go back to the previous page by clicking on the â€œGo Back” button.

5. To convert your Public Key to â€œPutty” software compatible key, scroll down to “convert” and click on the â€œView / Download” button from the Private Keys section to convert to â€œ.pkk” format. . Then click on the â€œDownload Key” button to download and go back to the â€œGo to Manage Keys” page.

58

6. Finally, to enable SSH Key, click on the â€œManage” button from the Public Keys section and then click on the â€œAuthorize” button.

57

Logging into SSH using the Putty SSH client.

  1. Download and install putty from here
  2. Open the putty software and go to â€œSSH > Auth.”
  3. Click on the “browse” button and browse for the private key that you have downloaded on the previous 6th step and open it. 64
  4. Now get back to the â€œSession” tab and enter your server credential in cpanel Username@serverAddress in the â€œHostname or IP Address” box. Here cPanel username is your cPanel login username and serverAddress is the server IP address or hostname for your cPanel account.60
  5. On the SSH Port field, enter the correct SSH port for the cPanel server. You may get the SSH port, server hostname etc. from your hosting provider.
  6. Optionally, you may save your correct details by entering a name in the â€œSaved Sessions” and clicking on the Save button beside it.
  7. Finally, click on the â€œOpen” button and your SSH session will start (If you have set a passphrase for the SSH key, it may ask for it in this step and that is it!)
65

āĻāĻ‡ āĻ•āĻ¨āĻŸā§‡āĻ¨ā§āĻŸ āĻŦāĻžāĻ‚āĻ˛āĻžāĻ¯āĻŧ āĻĒāĻĄāĻŧā§āĻ¨: SSH Key āĻŦā§āĻ¯āĻŦāĻšāĻžāĻ° āĻ•āĻ°ā§‡ āĻ•āĻŋāĻ­āĻžāĻŦā§‡ āĻ¸āĻŋāĻĒā§āĻ¯āĻžāĻ¨ā§‡āĻ˛ā§‡ āĻ˛āĻ—āĻ‡āĻ¨ āĻ•āĻ°āĻ¤ā§‡ āĻšā§Ÿ?