Unable to connect to my ec2 instances via the console and cli

0

Error message I am unable to connect my instances via EC2 instant connect and CLI. All the required ports including 22 are opened. The internet gateway for the subnet is created. IAM permissions for EC2 Instance Connect with the required policy were created.

I was able to connect the instances two weeks ago.

1 Answer
0

Hello.

Have you met the prerequisites for EC2 Instance Connect?
In particular, are you able to allow SSH connections from "EC2_INSTANCE_CONNECT" in the security group?
https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-instance-connect-prerequisites.html

You can check the IP address range of "EC2_INSTANCE_CONNECT" from the URL below.
Please note that the IP address range varies by region.
https://ip-ranges.amazonaws.com/ip-ranges.json

profile picture
EXPERT
answered 7 months ago
profile picture
EXPERT
reviewed a month 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