CodeBriefly
Tech Magazine

Access Hosting Account using SSH Key with PuTTY

1 2,275

Get real time updates directly on you device, subscribe now.

In this article, we will discuss “How to Access Hosting Account using SSH Key with PuTTY”. There is two way to access hosting using SSH such as SSH using cPanel details and SSH using SSH Key. Also, we are using PuTTY SSH client to access the hosting account. We already share a way to “Access Hosting Account using SSH” in our previous article.

Generate Keys using PuTTYgen.

You need to follow the given steps.

Step 1: Download and setup the PuTTY.

Step 2: Open PuTTYgen, and click on Generate button.

access-a-hosting-account-using-ssh-key-with-putty-1Step 3: Keep scrolling on the blank area until the progress bar hit on 100%. This will move to the next step after completing the 100% process.

Step 4: PuTTY key is almost created. Enter the Key passphrase and Confirm passphrase, then save your public key (with .pub extension) and private key (with .ppk extension).


Add SSH Key in your cPanel

After generating the keys in PuTTYgen, you need to add key into your server and authorize for the access. Follow the given steps:

Step1: Login to your cPanel, and search for Manage SSH. Open it and click Manage SSH Keys.

Step2: Here you need to click on Import Key button. Step3: In this step, we need to fill out the following form. Please follow the given steps to fill out the form.

  1. In first field add key name.
  2. Open your private key file, which we are saved using PuTTYgen and paste all the content in this field.
  3. Add “key passphrase”, this is used at the time of login. So please write down in separate file or keep remember this.
  4. Open your public key file, which we are saved using PuTTYgen and paste all the content in this field.
  5. Last step click on the import button.

Step 4: After importing, still our key is not authorized to use. So click on the manage option.
Step 5: Here we just need to click on the Authorize button.
Step 6: After authorizing the key, we can see everything is ready. Let connect our server with ssh key.


Connect PuTTY with SSH Key

Now, we are ready for connecting server with SSH key. You need to follow the given steps:

Step 1: Open PuTTY SSH client, add Hostname or IP and Port number.
PuTTYStep 2:  Choose SSH -> Auth from category list. Here you need to add your “.ppk” private key. Then click open.

After clicking on open button, new window is open. Here you need to add the login username and SSH Key Passphrase.

Conclusion

In this article, we will discuss “How to access hosting server using SSH key with PuTTY”. We will discuss more on this type of connectivity for different servers. Please feel free to add the comment if any query or you can submit your feedback 😉

If you like our content, please consider buying us a coffee.
Thank you for your support!
Buy Me a Coffee

Get real time updates directly on you device, subscribe now.

1 Comment
  1. Josh W. says

    Thanks for sharing this 🙂

Leave A Reply

Your email address will not be published.

This website uses cookies to improve your experience. We'll assume you're ok with this, but you can opt-out if you wish. AcceptRead More