Failed to connect to EC2 Instance EC2 Instance Connect is unable to connect to your instance

0

Hi, This is Srinu ,I created Ec2 Instance on Linux,i am also enable ssh port 22 in security group ,i also try using role attached, but did not connect Ec2 instance ,i did not find what is issue in ec2 instance or any issues on account,please give me reply as soon as possible.

                                                                             Thank you
2 Answers
1
Accepted Answer
AWS
answered a month ago
profile picture
EXPERT
reviewed a month ago
profile picture
EXPERT
reviewed a month ago
1

Hello.

Could you show me the detailed rules of the security group you have set up in EC2?
If you are using EC2 Instance Connect, you should also ensure that you have met all the prerequisites listed in the following documentation:
https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-instance-connect-prerequisites.html

A common problem with connections using EC2 Instance Connect is that the security group does not allow connections for "EC2_INSTANCE_CONNECT".
When using EC2 Instance Connect, you need to configure it to allow the IP address of "EC2_INSTANCE_CONNECT" instead of your own IP address.
https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-instance-connect-prerequisites.html#ec2-instance-connect-setup-security-group

profile picture
EXPERT
answered a month ago
profile picture
EXPERT
reviewed a month ago
  • thank you for your response i configured ssh port as per below sgr-00679f39d61b6a3a6

    SSH Inbound rule 1 Type TCP 22

    Custom Inbound rule 1 Source 0.0.0.0/0

  • i doing same process on another account ,it is connect successfully,but in first didn't work

  • By the way, is it possible to connect via SSH from Teraterm or terminal instead of EC2 Instance Connect? If the connection fails, you may want to check the route table settings for the subnet where EC2 is running and check whether a route to the internet gateway is set.

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