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?
相关问题
- Is shmid returned by shmget() unique across proces
- how to get running process information in java?
- JavaScript File Transfer SSH
- Error building gcc 4.8.3 from source: libstdc++.so
- Why should we check WIFEXITED after wait in order
Try this to install putty-tools
If you're on a Mac and you've previously installed Homebrew, from Terminal:
The first command was suggested in this comment and the second from Emizen Tech's answer.
First, install PuTTY for Mac using
Then, use the following command to convert the .ppk format private key to a standard PEM format private key:
Make sure permissions on the private key file are set properly. It should only be readable by the user that owns it.
You can now use the key for logins from scripts and command line with:
Install PuttyTools
Generate a
pem
file form theppk
The file server.pem file will be saved on same location