The Secure Shell Protocol (SSH) is a cryptographic network protocol for operating network services securely over an unsecured network. Its most notable applications are remote login and command-line execution.
The use of SSH keys is required for SSH access on all of our shared hosting plans, as password authentication is disabled as a security measure. An SSH key pair consists of two parts - a public key and a private key. The public key lives on the server you are connecting to, and grants access to SSH clients that possess the associated private key.
Here we cover the steps to create an SSH key and use it to access your account using PuTTY.
Related Article
Generate SSH Key
- Log into cPanel
- Navigate to SSH Access, located under the Security section
- Click the Manage SSH Keys button
- Click the Generate a New Key button
- Fill in the details for the new key then click the Generate Key button
- The Key Name field can be left as the default value of id_rsa unless you wish to change it
- Enter a strong password in the Password field or use the Password Generator button to create a random password, then enter the same password in the Password (Again) field
- RSA is the recommended option for Key Type
- Key Size should be 2048 or 4096; 1024 is not recommended
NOTE: Larger key sizes are more secure, but they result in larger file sizes and slower authentication times.
- Once generated, click Go Back
- Click Manage beside the newly created key under the Public Keys section
- Click the Authorize button
- Click Go Back
- Click View/Download beside the newly created key under the Private Keys section
- Enter the password created in step 5 in the Convert the “id_dsa” key to PPK format: section then click the Convert button
- Click the Download Key button
Connect Using PuTTY
- In PuTTY, navigate to SSH, then Auth
- Click Browse under Private key file for authentication
- Navigate to the private key file downloaded in the previous section and click Open
- Return to the Session page and enter the following details
- Host name: Enter the IP address associated with your account or the server hostname
TIP: You can find your IP address under General Information on the home page of your cPanel. - Port: 2222
- Host name: Enter the IP address associated with your account or the server hostname
- Click the Open button
NOTE: If a PuTTY Security Alert message pops up, click Yes. - Enter your cPanel username at the "login as:" prompt and press the Enter key
- Enter the password you set when you created the SSH key in the previous section and press the Enter key
NOTE: Nothing will be displayed when the password is typed, this is normal behavior.