create a public key from amazon ssh key pair

When you create a new key pair in Amazon Webs Services (AWS) you only have the RSA private key in a .pem file.

To create a public key use this command

ssh-keygen -y -f <yourprivatekey.pem> > yourpublickey.pub

This will create the file yourpublickey.pub containing the public key in your current folder.

create a public key from amazon ssh key pair
Share this