Saturday, March 5, 2016

AWS - EC2 - Troubleshooting Connecting to an Instance

Exam Question Scenario :- 
If you try to connect to your instance and get an error message Network error: Connection timed
out or Error connecting to [instance], reason: -> Connection timed out: connect.


Troubleshooting key points :-
  1. Verify the Security groups are properly configured to allow ssh access from the ip to the EC2 instance. For Security groups, Inbound traffic from the public ip address should be enabled
  2. Verify the NACLs are properly configured to allow ssh access from the ip to the EC2 instance. For NACLs, Inbound traffic from the public ip address should be enabled as well as the Outbound traffic for the response should be enabled
  3. Verify you are using the private key file that corresponds to the key pair that you selected when you launched the instance
  4. Verify you are connecting with the appropriate user name for your AMI. Mind the user names used to connect to the EC2 instance are different depending upon the AMI (which also determines the OS for the Instance)
  5. Private User key file is not recognized by the Server
More details in EC2 User Guide

12 comments:

  1. Thanks for providing this informative information you may also refer.
    http://www.s4techno.com/blog/2015/12/24/aws-rds-in-sql-server-5-minute-deploy/

    ReplyDelete
  2. Good Post! Thank you so much for sharing this pretty post, it was so good to read and useful to improve my knowledge as updated one, keep blogging…

    AWS Training in Bangalore|

    ReplyDelete
  3. I simply wanted to write down a quick word to say thanks to you for those wonderful tips and hints you are showing on this site.

    Aws Training in Porur



    ReplyDelete
  4. Its intensive mesh community serves as an infrastructure kitchen through which AWS can check and devour its personal sources on an unparalleled scale.This is great blog. If you want to know more about this visit here AWS Cloud Certification.

    ReplyDelete
  5. Your information was very clear. Thank you for sharing.
    AWS Online Training

    ReplyDelete
  6. It’s great blog to come across a every once in a while that isn’t the same out of date rehashed material. Fantastic read.DataScience with Python Training in Bangalore

    ReplyDelete
  7. Really a awesome blog for the freshers. Thanks for posting the information.devops training in bangalore



    ReplyDelete