Add an EC2 PEM Key to SSH on Linux and Mac OS X

Download your PEM file from Amazon EC2. Then, import it into your SSH store with this command:

Then you can simply connect to your EC2 instance via SSH like so:

You must do this every time you restart your computer. To make this permanent, add the command to your .bashrc file (Linux) or .bash_profile files (Mac).



Be the first to comment

Leave a Reply

Your email address will not be published.