Feedback Form
Home Open Source Tips and Tutorials How to convert Putty's private key (.ppk) into OpenSSH's private key format in Linux?
Friday, 03 April 2009 20:21

If you want to use your Putty generated private key (.ppk) in Linux with not only Putty, but other SSH or SFTP client (Terminal, Nautilus, GFTP, etc),  you have to convert it to OpenSSH's private key format, because putty private key format (.ppk) is not compatible with OpenSSH.

First, install "putty-tools" package, if you did not install it yet, because it is included puttygen.

apt-get install putty-tools

Now, convert your .ppk to OpenSSH's key format:

puttygen /pass/to/my-putty-privatekey.ppk -O private-openssh -o 
/pass/to/my-openssh-key

For example, if you use RSA authentication, your OpenSSH private key: /home/user/.ssh/id_rsa

Putty public key format is OK, copy it simply to /pass/to/my-openssh-key.pub

For example, if you use RSA authentication, your OpenSSH public key: /home/user/.ssh/id_rsa.pub

And of course, set the right permission to your private key file (chmod 600)

 

Tags: putty - puttygen - .ppk - private key - ssh - openssh - rsa - openssh key format - linux - debian - tip - tutorial - howto
Last Updated ( Wednesday, 17 June 2009 16:51 )
 

Visitor Map

Recent Readers