Convert PPK to id_rsa in Linux
Putty is an SSH client that’s mostly used in Windows. Linux usually has an SSH client built in.
Unfortunately Putty uses its own key format which is not compatible with OpenSSH’s key format.
This brief tutorial will show you how to easily convert Putty’s format (private.ppk) to OpenSSH’s format (id_rsa) and vice versa.
If you have any questions: please let me know in the comments!
Convert PPK to id_rsa
- Open a terminal
- Install
puttygen(part of theputtypackage):sudo apt-get update sudo apt-get install putty - Convert
private.ppktoid_rsa:puttygen private.ppk -O private-openssh -o id_rsaThis takes
private.ppkand converts it to an OpenSSH private key asid_rsa
Convert id_rsa to PPK
- Open a terminal
- Install
puttygen(part of theputtypackage):sudo apt-get update sudo apt-get install putty - Convert
id_rsatoprivate.ppk:puttygen id_rsa -O private -o private.ppkThis takes
id_rsaand converts it to a Putty private key asprivate.ppk
Leave a comment