How To Obtain a Public Key from an AWS .pem Private Key on Linux and Mac

Published Date Author: , Posted February 4th, 2019 at 3:28:27pm

Use the ssh-keygen command on a computer to which you’ve downloaded your private key .pem file; for example:

First, ensure permissions will allow ssh-keygen to work:
chmod 600 /path/to/the/file/your-key-pair.pem

Then generate an RSA public key:
ssh-keygen -y -f /path/to/the/file/your-key-pair.pem >

No comments as yet.

Leave Your Comment  Leave a comment

All fields marked with "*" are required.