How to generate a public SSH key from a private key

by Jason Swett,

If you have a private RSA key but not its public key, you can generate the public key by running the following.

sh-keygen -y -f ~/.ssh/my-key.pem > ~/.ssh/

Leave a Reply

Your email address will not be published. Required fields are marked *