Skip to main content

The following will extract the public key from a private key.  This assumes your private key is call id_rsa and public key is called id_rsa.pub.  This can also be used to validate a public/private key are a match.


ssh-keygen -y -f .ssh/id_rsa

This should match the output of the following:


cat .ssh/id_rsa.pub

Category