Create a PEM from a PPK file

CMOS picture CMOS · Oct 22, 2015 · Viewed 73k times · Source

So there are plenty of tutorials on how to convert a PEM to a PPK using puttyGen. However my issue is that my windows machine had the only PEM copy and I converted it into a PPK and deleted it. Now I need to figure out how to convert a PPK into a PEM so that my mac can ssh into the server. I still have access to the server so I could also just make a new key if I had to, anyone know how to convert PPK to PEM?

Answer

Emizen Tech picture Emizen Tech · Aug 9, 2016
  1. Install PuttyTools

    apt-get install putty-tools
    
  2. Generate a pem file form the ppk

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

The file server.pem file will be saved on same location