Unable to connect to EC2 instances

0

Earlier, when created EC2 instance I was able to connect thru SSH client (putty). After usage, I terminated EC2. Now after rebooting the instance unable to connect to the same EC2 Instance or any new instance. thru SSH getting 'Fatal Error: network connection timed out' Error.

Though if I try to connect thru web also getting below error.

'Failed to connect to your instance EC2 Instance Connect is unable to connect to your instance. Ensure your instance network settings are configured correctly for EC2 Instance Connect. For more information, see Set up EC2 Instance Connect at https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-instance-connect-set-up.html.'

Instance ID: i-0cc32c73f789e65e7

I followed the steps given below too. 'https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-instance-connect-prerequisites.html#eic-prereqs-amis' Kindly help if I am missing some thing.

  • If you are trying connect using the IP check if it was changed, or use the DNS name instead. then try to check the SG to allow SSH. then try to check the NACL to allow in the outbound and the inbound of SSH.

    If all failed you always have the option to use SSM.

asked a year ago264 views
1 Answer
0
Accepted Answer

If you are trying connect using the IP check if it was changed, or use the DNS name instead. then try to check the SG to allow SSH. then try to check the NACL to allow in the outbound and the inbound of SSH.

If all failed you always have the option to use SSM.

Ahmad
answered a year ago
profile picture
EXPERT
reviewed 3 months ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions