Last Updated: February 25, 2016
·
12.25K
· andilabs

Connect to EC2 via SECURE SHELL plugin for Google Chrome

Picture

Befor you start you need:

  • your private key dogspot.pem (dogspot is an example, you will have something else probabbly)

  • installed secure shell plugin

Then you have to generate a public key from your private key. But before you have to change permissions to downloaded *.pem file, which really should be kept save and secret!

chmod 400 dogspot.pem

To do this open your Terminal and run following command:

ssh-keygen -y -f dogspot.pem > dogspot.pub

IMPORTANT: After this step you have to remove extension in file name dogspot.pem, so just dogspot left.

Then you should fill the fields somehow like shown below in the picture. First field can be descriptive name which is intuitive for you. The username by default is ubuntu and hostname you can take from your AWS Console under Public DNS and now the most important part.

Click Import... and select two files (the private key without pem !!) at once and the public key (with pub extension). If everything goes ok, you should see the name in the dropdown and be able to connect to your instance.

Picture

1 Response
Add your response

they also must have the same name ie: don't do

ssh-keygen -y -f dogspot.pem > dogspot_pubkey.pub

shell seems to like the prefix

over 1 year ago ·