How to connect to Amazon ec2 via SSH (Terminal)

So, for those less technical in the room (myself included) I have put together this brief and point styled post regarding connecting to amazon ec2 from my mac using terminal.

First launch terminal (can't help you there. It's in applications>utilities I think)

Then type in the connect commands:
ssh -i /path/to/pemfile/filename.pem root@79.125.2.XXX

This is basically connect -> here is the file path to my security key -> my username (root) -> and my IP address which might be something like amazon.ec2.amazon.com.34432 or something crazy.

Hit enter

Connection should be made.

I know...brief right.
Amazon Elastic Compute Cloud (Amazon EC2)



Comments

just a note to change ssh -i

Jason's picture

just a note to change

ssh -i /path/to/pemfile/filename.pem root@79.125.2.XXX

to

ssh -i /path/to/pemfile/filename.pem ec2-user@79.125.2.XXX

thank you for your post.

Post new comment

The content of this field is kept private and will not be shown publicly.