Private Key: How To Connect To Server Using PuTTY? – You Won’t Believe How Easy It Is – 1 Min! – Putty Key Generator

You are currently viewing Private Key: How To Connect To Server Using PuTTY? – You Won’t Believe How Easy It Is – 1 Min! – Putty Key Generator
Share This Post, Help Others, And Earn My Heartfelt Appreciation! :)
4.8
(971)

Often, instead of the standard username and password, you would like to use a private SSH [ How to connect to server using PuTTY ] key to connect to remote host via SSH. In this short post, I will show you how to connect to your server instance using SSH key and PuTTY on Windows.

How To Connect To Server Using SSH Putty?

First, at the session window, enter your host name or IP address and select SSH as Connection type.

If you want, you can save your session – enter you session name at the Saved Session field and click Save. Without it, you will have to enter your configuration details every time.  

Private Key: How To Connect To Server Using PuTTY? - You Won't Believe How Easy It Is - 1 Min! - Putty Key Generator
How to connect to server using PuTTY

Add Private Key File

Next, download your key to your local computer and go to Connection -> SSH ->Auth at the category tab. You should see Private key file for authentication like on the screen below:

Private Key: How To Connect To Server Using PuTTY? - You Won't Believe How Easy It Is - 1 Min! - Putty Key Generator
How to connect to server using PuTTY

How To Connect To Linux Server From Windows Using PuTTY?

Click Browse… and select private key file from your computer.

Next, go to session tab and click Save to remember you private key file location and that’s it!

Finally, click Open button to connect to server. That’s all about how to connect to server using PuTTY!

Putty Key Generator

To generate private and public keys using Putty Key Generator you need to open PuTTYGen which was installed with PuTTY. Search for it in the start menu by typing: PuTTYGen. Then you have to select the Key Type to Generate like:

  • RSA
  • DSA
  • ECDSA
  • EC25519
  • SSH-1 (RSA)

In our case we will choose the first one – RSA. Then click Generate button and you will have to move your mouse to get input for Putty Key Generator. This is such a trick, because no one will be able to repeat the moves you made, so the probability of generating the same two pairs of keys is practically equal to 0.

Private Key: How To Connect To Server Using PuTTY? - You Won't Believe How Easy It Is - 1 Min! - Putty Key Generator
Putty Key Generator

After generating the key, save the private and public key on your hard drive. For security, you can assign a password to the private key. When you give a password, then each time you try to use this key during the connection, you will be asked for the password, which gives you another layer of security. I come here when someone could steal your private key file, it will be a problem because you will also need to know the password.

Summary

After reviewing this post, you should be able to connect to any server with a private-public key pair using SSH. In addition, we learned how to generate a private and public key when we do not have them yet.

If you enjoyed this post please add the comment below and share this post on your Facebook, Twitter, LinkedIn or another social media webpage.
Thanks in advanced!

How useful was this post?

Click on a star to rate it!

Average rating 4.8 / 5. Vote count: 971

No votes so far! Be the first to rate this post.

Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments