How to Manage SSH Keys in cPanel


SSH keys provide a more secure alternative to password-based login for accessing your server via SSH. Instead of a password, a cryptographic key pair (public + private) is used for authentication. This guide explains how to manage SSH keys in cPanel on SKPHost.

Generate a New SSH Key Pair

  1. Login to cPanel.
  2. Under Security, click SSH Access.
  3. Click Manage SSH Keys.
  4. Click Generate a New Key.
  5. Fill in:
    • Key Name: e.g., id_rsa
    • Key Password: Optional passphrase for extra security.
    • Key Type: RSA (recommended) or DSA.
    • Key Size: 2048 or 4096 bits.
  6. Click Generate Key.

Authorize the Key

  1. After generating, find the key in the Public Keys list.
  2. Click Manage next to it.
  3. Click Authorize to enable it for SSH login.

Download the Private Key

Click View/Download next to the private key. Save this file securely — you will use it in your SSH client (PuTTY, Terminal, etc.) to connect to your server.

Importing an Existing Public Key

  1. Click Import Key.
  2. Paste your existing public key content.
  3. Give it a name and click Import.
  4. Authorize the key as described above.

Security Tip: Never share your private key with anyone. Store it securely and set appropriate file permissions (chmod 600 ~/.ssh/id_rsa).

If you continue to face issues, please open a create a request.

War diese Antwort hilfreich? 0 Benutzer fanden dies hilfreich (0 Stimmen)