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

  1. Log in to your cPanel dashboard.
  2. Under the Security section, click on SSH Access.
  3. Click on the Manage SSH Keys button.

Step 2: Generate a New Key Pair

  1. Click Generate a New Key.
  2. Provide a Key Name (default: id_rsa).
  3. Enter a strong Key Password and choose RSA (Key Size: 2048 or 4096).
  4. Click Generate Key.

Step 3: Authorize the Public Key

  1. Under Public Keys, locate your generated key name.
  2. Notice that the status shows not authorized. Click Manage next to it.
  3. Click Authorize to allow incoming terminal connections with this key.

Step 4: Download the Private Key to Your Computer

  1. Scroll down to Private Keys and click View/Download.
  2. If you use PuTTY, you can convert the key directly to .ppk format inside cPanel. If you use Windows PowerShell or macOS Terminal, save the raw id_rsa file to your ~/.ssh/ directory.
  3. 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:

Дали Ви помогна овој одговор? 0 Корисниците го најдоа ова како корисно (0 Гласови)