Extract Public Key from .pem File

📝 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

©️ 2024