- Check the instance security group rules. Allow incoming SSH, port
22
. - Are DNS resolution & hostnames enabled for the VPC?
- Does the VPC have an Internet gateway?
- Check the route table for the VPC subnet. Add
0.0.0.0/0
--> Internet gateway - Check the network access control list (ACL) for the subnet. Allow incoming SSH, port
22
. - Use the right private key, duh. Look it up under the instance details, https://console.aws.amazon.com/ec2/v2/home
Login as the right user:
- For an Amazon Linux AMI, the user name is
ec2-user
. - For a RHEL5 AMI, the user name is either root or
ec2-user
. - For an Ubuntu AMI, the user name is
ubuntu
. - For a Fedora AMI, the user name is either
fedora
orec2-user
. - For SUSE Linux, the user name is either
root
orec2-user
.