How to Generate an SSH Key

Cpanel hosting Solution
  1. Login to the cPanel that you want to connect to using SSH.
  2. Under Security click SSH Access.
  3. Click Manage SSH Keys.
  4. Then click Generate a New Key.
  5. Type in a strong password, then click in the field below it and type the password again.
  6. Click Generate Key, then you will see a Key Generation Complete! message.

How to Authorize an SSH Key

Once you have generated the SSH Key, it needs to be Authorized.

  1. Login to the cPanel that you want to connect to using SSH.
  2. Under Security click SSH Access.
  3. Click Manage SSH Keys.
  4. On the next screen, locate the key you just created under the Public Keys section. Click Manage (under the Actions column) next to your new key.
  5. You will see a message stating:”The key with the name “id_dsa” is currently “not authorized” for use when connecting to this account.Click Authorize. You will then see a message stating:The key “id_dsa.pub” has been authorized.

Convert and Download the SSH Key

  1. Login to the cPanel that you want to connect to using SSH.
  2. Under Security click SSH Access.
  3. Click Manage SSH Keys.
  4. Under Private Keys click View/Download next to the Private key you want to use.
  5. On the next screen, scroll down to the Convert the “id_dsa” key to PPK format: section. Enter the passphrase used to generate the SSH key in the Enter the passphrase to unlock the “id_dsa” key for conversion: field.
  6. Click Download Key.

SSH using PuTTY

  1. Open PuTTY, under Connection click SSH, then Auth.
  2. Click Browse under Private key file for authentication, then select the private key you downloaded in the last section. Click Open.
  3. Click Session and under port enter: 2222
  4. For the Host Name, enter your domain name or shared IP address, then click Open to connect. If you see a PuTTY Security Alert, click Yes.
  5. You will see “Login As“. Enter your cPanel username and then hit Enter.
  6. Enter the password for your key file and hit Enter. For security reasons, PuTTY will not show anything when you type your password, this is normal. You will then be logged into your account via SSH.

Congratulations, now you know how to connect to a Shared server or Reseller cPanel account using SSH!

Leave a Reply

Your email address will not be published. Required fields are marked *