home

back

Extract Public Key from .pem File

April 05, 2021

📝 Note: if your permissions are too open you will need to fix them chmod 400 PrivateFile.pem

Linux: ssh-keygen -f PrivateFile.pem -y > publicFile.pub

macOs: ssh-keygen -f PrivateFile.pem -y | pbcopy


Marcus Lyons