Using OpenSSH Private Key With Putty on Windows

I have been using Putty on Windows to login to Linux machines for many years now. SSH with login password!

This morning I received a Private Key file to login to AWS for some experiment with Dockers. I know how to use private keys on Linux but on Windows?

ssh –I PATHTOKEY user@xyz.compute-1.amazonaws.com

In Putty, there is an option to provide Private key for authentication

image

However, this only accepts a Putty Private Key. What I received was an OpenSSH private Key

image

This OpenSSH key can be converted to Putty Private Key using Putty Key Generator Tool.

Run puttygen.exe, Load the OpenSSH ‘priv’ key file and click “Save private key”

image

This will save Putty private key (*.ppk) and it can be used for login.

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s