You try to connect via SSH to a newly created Amazon EC2 instance and get one of the following error messages: “Network error: Connection timed out” or “Error connecting to [instance], reason: -> Connection timed out: connect,” You have confirmed that the network and security group rules are configured correctly and the instance is passing status checks. What steps should you take to identify the source of the behavior?

Q & ACategory: QuestionsYou try to connect via SSH to a newly created Amazon EC2 instance and get one of the following error messages: “Network error: Connection timed out” or “Error connecting to [instance], reason: -> Connection timed out: connect,” You have confirmed that the network and security group rules are configured correctly and the instance is passing status checks. What steps should you take to identify the source of the behavior?
Admin Staff asked 5 years ago

You try to connect via SSH to a newly created Amazon EC2 instance and get one of the following error messages: “Network error: Connection timed out” or “Error connecting to [instance], reason: -> Connection timed out: connect,” You have confirmed that the network and security group rules are configured correctly and the instance is passing status checks. What steps should you take to identify the source of the behavior?

 

A) Verify that the private key file corresponds to the Amazon EC2 key pair assigned at launch.

B) Verify that your IAM user policy has permission to launch Amazon EC2 instances.

C) Verify that you are connecting with the appropriate user name for your AMI.

D) Verify that the Amazon EC2 Instance was launched with the proper IAM role.

E) Verify that your federation trust to AWS has been established.

1 Answers
Admin Staff answered 5 years ago

A) Verify that the private key file corresponds to the Amazon EC2 key pair assigned at launch.
C) Verify that you are connecting with the appropriate user name for your AMI.