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.
Tick the box to select the new instance and take a note of the web server’s address,
Now go to terminal and type (I assume you are familiar with Secure SHell):
ssh -i ~/.ssh/webserverkey.pem email@example.com
(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!
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 firstname.lastname@example.org:/home/ubuntu/
More info here