How to Generate an SSH Key in cPanel
An SSH key pair is a secure alternative to passwords for shell access. cPanel can generate the keys and authorize them for you.
Step-by-step
- Open Security → SSH Access and click Manage SSH Keys.
- Click Generate a New Key.
- Set a strong key passphrase (this protects the private key) and choose the key type/size offered, then generate.
- Authorize the public key. Back in Manage SSH Keys, find the new public key and click Manage → Authorize.
- Download the private key to your computer and keep it secure — never share it.
- Use the private key in your SSH client (or convert it to your client's format) to connect — see using SSH access.
💡 Good to know
- The private key is like a password — store it safely and never email it.
- Always set a passphrase on the key for an extra layer of protection.
- Authorize the public key, keep the private key — never the other way around.