Using SSH Keys is significantly more secure and convenient than standard passwords. By authorizing an SSH key, you can connect to your cPanel terminal instantly without entering a password each time.
Step 1: Access SSH Access in cPanel
- Log in to your cPanel dashboard.
- Under the Security section, click on SSH Access.
- Click on the Manage SSH Keys button.
Step 2: Generate a New Key Pair
- Click Generate a New Key.
- Provide a Key Name (default:
id_rsa). - Enter a strong Key Password and choose RSA (Key Size: 2048 or 4096).
- Click Generate Key.
Step 3: Authorize the Public Key
- Under Public Keys, locate your generated key name.
- Notice that the status shows not authorized. Click Manage next to it.
- Click Authorize to allow incoming terminal connections with this key.
Step 4: Download the Private Key to Your Computer
- Scroll down to Private Keys and click View/Download.
- If you use PuTTY, you can convert the key directly to
.ppkformat inside cPanel. If you use Windows PowerShell or macOS Terminal, save the rawid_rsafile to your~/.ssh/directory. - Connect effortlessly with:
ssh -i ~/.ssh/id_rsa username@server_ip
Watch the Video Tutorial!
Follow along with our step-by-step video demonstration on generating and importing SSH keys: