Search code examples
sshputtyopensshpem

Create a PEM from a PPK file


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?


Solution

    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