HostOnNet Blog

Convert Putty PPK file to Linux

Putty Windows SSH Client

ppk is format used to store private key by popular windows ssh client Putty.

This do not work on Linux, if you want to use .ppk file to connect to remote server from Linux machine, you need to convert it to openssh rsa format. To do this, you need to install putty-tools

apt install putty-tools

To convert PPK file, run

puttygen FILE_NAME.ppk -O private-openssh -o FILE_NAME.pem

This will generate file FILE_NAME.pem, that you can use to connect to remote server as follows.

root@hon-vpn:~# ssh -i HostOnNet.pem
Welcome to Ubuntu 16.04.3 LTS (GNU/Linux 4.4.0-1038-aws x86_64)

 * Documentation:
 * Management:
 * Support:

  Get cloud support with Ubuntu Advantage Cloud Guest:

6 packages can be updated.
6 updates are security updates.

*** System restart required ***
Last login: Tue Nov 14 06:10:22 2017 from

Posted in Linux