Showing posts with label aws. Show all posts
Showing posts with label aws. Show all posts

Tuesday, February 5, 2013

Extracting public key for OpenSSH use from AWS generated keypair

To extract a public key from the AWS generated keypairs for use in OpenSSH, use the following command:

$ ssh-keygen -y -f my-key.pem

That will output the public key in a nice string which can then be inserted into authorized_keys.