Skip to content

Instantly share code, notes, and snippets.

@robert-claypool
Created August 3, 2015 04:55
Show Gist options
  • Save robert-claypool/19c8107814cd8d8d15d6 to your computer and use it in GitHub Desktop.
Save robert-claypool/19c8107814cd8d8d15d6 to your computer and use it in GitHub Desktop.
Troubleshooting PuTTY SSH to an Amazon Linux instance in a VPC

http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/TroubleshootingInstancesConnecting.html#TroubleshootingInstancesConnectingPuTTY

  • 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 or ec2-user.
  • For SUSE Linux, the user name is either root or ec2-user.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment