Remote access to AWS instance

If you need help to set up an AWS instance, read my previous post.

From the navigation menu of your Amazon EC2 console, click on INSTANCES.

AWS Console

Tick the box to select the new instance and take a note of the web server’s address,


Choose the instance

Now go to terminal and type (I assume you are familiar with Secure SHell):

 ssh -i ~/.ssh/webserverkey.pem

(you should avoid to access an instance as root, for this reason the user “ubuntu” is automatically created).

If your terminal looks like the one below… well done! You successfully accessed your instance!

Access through terminal

You can also send files from your computer to the instance using Secury CoPy (scp), which syntax is exactly the same as ssh.

Imagine you want to transfer a text file called “test.txt” from your computer (user home folder, ~) to the amazon instance (ubuntu home folder, /home/ubuntu).

Then go to terminal and type:

 scp -i ~/.ssh/webserverkey.pem ~/test.txt

That’s all!

More info here


One Comment

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s