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

Had to do this for a client today who’s using Putty on a Windows PC to access their server via SSH. Here’s how to use puttygen:

On Arch Linux its simple…

pacman -S putty

Then cd to path of key(s):

puttygen keyname -o keyname.ppk


Debian/Ubuntu try…

apt-get install putty-tools
puttygen keyname -o keyname.ppk

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