Blog is moving

My blog is moving to If you are looking for a specific or older post you are in the right place Otherwise check out my new page for more up to date content.

Saturday, November 10, 2007

How to convert id_rsa keys to Putty .ppk without a passphrase

This how to will show how to convert id_rsa keys that were already created on Linux, without a passphrase, to .ppk extension so it can be used with Putty on a Windows box.

Download PuttyGen from here and open it. Once it opens click on Conversions => Import Key

Search for the id_rsa key on you computer

Click on “Save Private Key” and “Yes” to save without a passphrase.

Choose a location and a name for the new .ppk key

Now go to putty and add a path to key for the connection




carlos said...

What about the other way?
I have a key pair created with putty key generator and i want to use them as id_rsa and pair in my linux machines.
Is it possible?
What shoul I paste from the saved files into the /id_rsa files

Victor said...

Hi Carlos,

If you open the key with puttygen you'll be able to copy the public key from the top box that says "Public key for pasting into OpenSSh authorized_keys file". You can really do as the description says, just copy the txt into your ~/.ssh/authorized_keys file.

For the private key you can just click on "Conversations=>Export OpenSSH key".

Hope it helps!


Anonymous said...

Sorry for my bad english. Thank you so much for your good post. Your post helped me in my college assignment, If you can provide me more details please email me.

Anonymous said...

In my opinion, it is error.

Anonymous said...

I have a SmartCard certificate that has the private key marked as UNEXPORTABLE. I can get an export of the public key that I would like to get into the OpenSSH format. Does anyone know how to do that?

Anonymous said...

How about id_dsa (ciphers other than DES-EDE3-CBC)

Rob said...

Wanted to say thank you to Victor for his help here. I have been desperately trying to find a way to convert my Puttygen created SSH key into something that I could import into Prompt by Panic (an iOS SSH client).


Anonymous said...

Thank you!

Anonymous said...

Thanks a lot, this saved my arse :D

Anonymous said...

Hey your pictures are down :(
They were up last week.

Paul Kohler said...

Thanks Victor - still useful!! :-)

Paul Kohler said...

Thanks Victor - still useful after all these years!(pictures or not)

PK :-)

Anonymous said...