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

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

When you run puttygen, it does three things. Firstly, it either loads an existing key file (if you specified keyfile), or generates a new key (if you specified keytype). Then, it optionally makes modifications to the key (changing the comment and/or the passphrase); finally, it outputs the key, or some information about the key, to a file. Here’s how to use puttygen:


On Arch Linux its simple…

pacman -S putty


On RHEL/Centos:

yum install putty



dnf install putty


Debian/Ubuntu try…

apt-get install putty-tools


Then cd to path of key(s):

puttygen keyname -o keyname.ppk

Make sure you’ve replaced the “keyname” with your private key filename.


Last update: Feb 11th 2019.