How to Convert OpenSSH Keys to Putty (.ppk) on Linux

PuTTYgen is a key generator for generating SSH keys for PuTTY. PuTTYgen is comparable to the ssh-keygen tool in some respects. PuTTYgen can be used to generate public and private key pairs (in .ppk file format). In addition, PuTTYgen can also be used to convert keys to and from other formats. PuTTYGen is a graphical tool on Windows. There is a command-line version available for Linux.

When you run PuttyGen, it does three things. First, it either loads an existing key file (if you specified a keyfile), or generates a new key (if you specified a keytype). Then, it optionally modifies the key (commenting out and/or changing the passphrase); Finally, it outputs the key, or some information about the key, to a file.

How to Convert OpenSSH Keys to Putty (.ppk) on Linux

How to use PuttyGen

Its simple on Arch Linux…

pacman -S putty


yum install putty


dnf install putty

Try Debian/Ubuntu…

apt-get install putty-tools

Then on the path to the cd key:

puttygen keyname -o keyname.ppk

Make sure you replace “keyname” with your private key file name.

reference: – Putty Official Page. – ssh-keygen tool. – command line.
– PuttyGen Windows.

First published: May 16, 2013 | Last Updated: 3rd June 2019.

Leave a Comment