If you are using MAC you can use terminal. If you are using Windows I recommend PUTTY and PUTTYGEN http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html
You also need to have your Private Key when you created your instance.
Some other things you should have in front of you:
Bash Commands (command line for linux)
VI editor Commands (file editor in the command line)
Connecting with SSH
Secure Shell (SSH) is how you run commands on the instance. The key pair you created is a security key that allows you to connect. Without the key you can’t connect to the instance. The instance stores a public key that is sent to you when you try to connect to compare to the private key. If they match then you can access the instance.
WINDOWS: Setup Putty and Connect via SSH
The keyfile you downloaded has a .pem extension by default but putty and filezilla require it to be in a different format (.ppk) but good news: putty transforms it for you. Open puttygen and open the key file. You will have to select ALL files instead of the default ppk in order to find the file. When you open it puttygen will prompt you that you need to save it in the ppk format. Click save private key to do this. I just name it the same as the pem file as to not confuse myself. Now that you have a usable file open Putty. On the left tab go down and open the SSH branch under connection. Select the Auth Branch under SSH. Browse for the .ppk file and then go back up to Session
Put your elastic IP in the Host Name/IP box Use port 22 (make sure you opened that port in your security group in amazon aws console. see the first tutorial) and click open. If it connects successfully (which it should) you can enter a name for the connection and save it so you don’t have to repeat all these steps every time.
Once you are connected you will see a terminal screen asking you what user to log in as. you need to use “ec2-user” for this amazon instance.
Mac OSx: Connect via SSH
Open terminal and navigate to the folder where you saved the keygen file. if you don’t have root privileges type sudo before a command. Your command will be
ssh -i nameofyourkeyfile.pem ec2-user@1.2.3.4
use the name of your key file and your elastic ip NOT 1.2.3.4 …


You now have control of your instance. procede with caution if you are not familiar with linux yet. you can run commands to view files and directories. you start out in your home directory when you login to the instance so to goto the root you can type
cd ../..
this will back you up 2 directories to the main root.
In the next lesson we will explore the directories you will be using and setting up Apache, Mysql and PHP