Home » Blog » Uncategorized » Configure SSH keys using cPanel

Configure SSH keys using cPanel

posted in: Uncategorized 0

Generate a new key

  1. First, log in to your cPanel account.
  2. If you are using the “Jupiter” theme, navigate to the “Tools” page under the “Security” heading and click on “SSH Access”.
  3. For the “Paper Lantern” theme, go to the “Security” heading and click on “SSH Access”.
  4. Once in “SSH Access”, under and click “Manage SSH Keys”, click “Manage SSH Keys”.
  5. Next, click the “Generate a New Key” button.
  6. Specify a name for your key (e.g., “id_rsa”) and optionally enter a password, either by typing it in and confirming or using the “Password Generator” tool.
  7. Ensure the Key Type is set to RSA and Key Size to 2048.
  8. Click “Generate Key” to create both public and private keys, which will be saved in /home/username/.ssh, where “username” is your hosting account username.
  9. After generating the key, click “Go Back”.
  10. Locate the newly created key under Public keys, click “Manage” in the Actions column.
  11. Then click “Authorize” and “Go back”.
  12. You can now connect to your account using the new SSH key.

Import an existing key

  1. Follow steps 1 to 4, then click “Import key”
  2. Enter a name for the key (defaults to “id_dsa”), paste the public key into the text box, and click “Import”.
  3. After importing, click “Back to Manage Keys”, locate the imported key under Public keys, click “Manage” in the Actions column, and proceed with steps 11 and 12 from the previous section.

Leave a Reply