Friday, July 22, 2022

converting ppk to pem on Linux

I had some PuTTY private key in .ppk format which I wanted to use on a Linux machine. One way would have been to install putty on Linux. Another way was to convert the ppk to pem format, and then use the standard OpenSSH ssh command. 

The version of puttygen available via the ubuntu repos seemed to be too old - so, downloaded and installed via https://www.chiark.greenend.org.uk/~sgtatham/putty/latest.html as per

So, 

tar -xvf putty*.tar.gz
cd putty[version]
# from the README
cmake .
cmake --build .
sudo cp puttygen /usr/bin/

and then 
puttygen server.ppk -O private-openssh -o server.pem

No comments:

Post a Comment