You are currently viewing [SOLVED] Putty – Private Key: How To Connect To Server Using PuTTY? – You Won’t Believe How Easy It Is – 1 Min! – Putty Key Generator
Could You Please Share This Post? I Appreciate It And Thank YOU! :) Have A Nice Day!
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. Putty is open source tool which helps you many times.

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 -> How To Connect Linux Server Using Putty

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.

Could You Please Share This Post? 
I appreciate It And Thank YOU! :)
Have A Nice Day!

BigData-ETL: image 7YOU MIGHT ALSO LIKE

How do I connect to a Linux server using PuTTY?

You need to provide the user, password and hostname to connect to remote server. Please find more details: https://bigdata-etl.com/how-to-connect-to-server-using-putty/

Why PuTTY is not connecting to server?

Probably something is wrong. It can be username, password or hostname. Please find the E2E example how to connect to remote server using putty: https://bigdata-etl.com/how-to-connect-to-server-using-putty/

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.

As you found this post useful...

Follow us on social media!

We are sorry that this post was not useful for you!

Let us improve this post!

Tell us how we can improve this post?