loader image
cPanel Hosting

Connecting to a cPanel Server through SSH using Key based authentication

Step 1: Generate SSH Key Pair

The first step is to generate an SSH key pair, you can generate the key pair (public key and private key) from the cPanel.

Login to the cPanel of the domain for which you wish to generate the key pair.

Click on SSH Shell Access under the Security section.

Click on Manage SSH Keys.

Click on Generate a New Key.

Enter the key name and password and click on Generate Key.

Step 2: Authorize the SSH Server to use the Public Key

Click on Manage Authorization for the key you wish to authorize.

Click on Authorize to authorize the key.

Step 3: Accessing the Remote Server

Download PuTTY.

Download the private key from the cPanel in PPK format

Open Putty and enter the Remote Host Name or IP Address.

In the left menu, click Data under Connection and enter the cPanel username in the Auto-login username field.

In the left menu, click Auth under Connection -> SSH and enter the path of the saved private key file.

Click the Open button to connect to the server.

Leave a Reply

Your email address will not be published. Required fields are marked *

You cannot copy content of this page