EC2 Setup

EC2 Setup

 

Connect

Now, to connect to your server you’ll need to use a ssh client with your key pair.

On Linux and Mac this can easily be accomplished by issuing the ssh command in the same directory as the key pair and using it in the ssh command accordingly.

For Instance, to connect to the newly formed EC2 instance created for this blog:

ssh -i "ViXiV.pem" ubuntu@ec2-**-**-***-**.us-west-1.compute.amazonaws.com

Issuing this in the same directory as ViXiV.pem (usually Downloads directory) will connect me to our new ViXiV EC2 instance.

 

The only thing that might stand in your way is the permissions of the key pair. They recommend in the key pair file itself permissions of 644, but that never works.

You need 600 for most default ssh clients to connect.

On Linux: sudo chmod 600 Key-Pair.pem

ssh -i “Key-Pair.pem” ubuntu@ec2-**-**-***-**.us-west-1.compute.amazonaws.com

You should then see a linux prompt:

ubuntu@ip-***-**-*-**:~$

 

On Windows, you can use Putty to connect and Puttygen to convert your PEM over to PPK for use with Putty.

 

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27

Leave a Reply

Your email address will not be published. Required fields are marked *

Post navigation

Previous Post :