- Go to (http://aws.amazon.com)
- Sign in
- Click on EC2
- Click on Running Instances
- Select you pem key. It should match the key pair name.
- Make sure that the pem key has “chmod 400” permission
- Open terminal and type: ssh -i mykey.pem username@public_dns_name
username is: – ec2-user for Amazon Linux – ec2-user for RHEL5 – ubuntu for Ubuntu – ec2-user for Fedora – ec2-user for SUSE Linux