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
- Login to cPanel.
- Under Security, click SSH Access.
- Click Manage SSH Keys.
- Click Generate a New Key.
- 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.
- Key Name: e.g.,
- Click Generate Key.
Authorize the Key
- After generating, find the key in the Public Keys list.
- Click Manage next to it.
- 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
- Click Import Key.
- Paste your existing public key content.
- Give it a name and click Import.
- 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.
