29 May 2015
A quick howto on working with AWS .pem ssh certificates.
AWS distributes their ssh keys as .pem certificates. The usual process with working with them is:
mv ~/Downloads/foo.pem ~/.ssh chmod 0600 ~/.ssh/foo.pem ssh -i ~/.ssh/foo.pem 188.8.131.52 -l ubuntu
However, sometimes it’s handy to generate a public key out of the .pem file, for example to make working with Gnome’s Seahorse key manager easier:
cd ~/.ssh mv foo.pem foo ssh-keygen -y -f ~/.ssh/foo > ~/.ssh/foo.pub