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 theputty
package):sudo apt-get update sudo apt-get install putty
- Convert
private.ppk
toid_rsa
:puttygen private.ppk -O private-openssh -o id_rsa
This takes
private.ppk
and converts it to an OpenSSH private key asid_rsa
Convert id_rsa to PPK
- Open a terminal
- Install
puttygen
(part of theputty
package):sudo apt-get update sudo apt-get install putty
- Convert
id_rsa
toprivate.ppk
:puttygen id_rsa -O private -o private.ppk
This takes
id_rsa
and converts it to a Putty private key asprivate.ppk
Leave a comment