How to Manage SSH keys in cPanel

November 6, 2023 / cPanel & WHM

In the following article, we’ll detail the process of managing SSH keys within cPanel. You can generate, import, oversee, and delete SSH keys via cPanel, which are crucial for verifying specific computers’ access permissions to your website through SSH.

Follow these steps to manage SSH Keys in cPanel.

  1. Log in to your “cPanel”.
    cPanel Login
  2. Click on “SSH Access” in the “Security” section of cPanel.
    SSH Shell Access
  3. Click on “Manage SSH keys”.
    Manage SSH keys
  4. To set up a new SSH key, click on Generate a New Key.
    Generate a New Key.
  5. Enter the “Key Name, Key, Password”, type the desired password and then click “Generate key”.
    Key Password
  6. SSH key is generated, click on “Go Back”.
    SSH key is generated
  7. The server retains the public key, while the private key is the one you need to download and store on the computer you intend to use for accessing your server. However, before doing so, you must authorize the public keys to ensure their functionality. Click on “Manage Authorization” to proceed.
    Manage Authorization.
  8. Click “Authorize” button and once the key has been authorized click on Go Back.
    Authorization.
  9. To view the Private key, click on “View/Download”.
    SSH Access
  10. To Download key, click on “Download.”
    Download
  11. To convert the key into the PPK format by entering the password and clicking “Convert.”
    Convert the “Test” key
  12. The SSH key has been set up and it is ready to use to securely log into your server with SSH.

In this way, you can manage your SSH keys in cPanel. For more information on cPanel, visit our Knowledgebase.

 

Spread the love