Economicalhost · Knowledge Base
Knowledge Base › Advanced Security › How to Generate an SSH Key in cPanel
Advanced Security

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

  1. Open Security → SSH Access and click Manage SSH Keys.
  2. Click Generate a New Key.
  3. Set a strong key passphrase (this protects the private key) and choose the key type/size offered, then generate.
  4. Authorize the public key. Back in Manage SSH Keys, find the new public key and click Manage → Authorize.
  5. Download the private key to your computer and keep it secure — never share it.
  6. 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.