Skip to content

Error connecting to the m2 instance

0

Hi there!

I have spun up an EC2 m2 instance, the instance status says "Running" but when I try to connect I get the following error message- "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 EC2 Instance Connect Prerequisites at https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-instance-connect-prerequisites.html."

Other instsances t2, r3 instances seem to get connected. What am I missing?

asked 2 years ago329 views
2 Answers
1

Hello.

I was able to SSH to an m2 instance type EC2 using my AWS account via EC2 Instance Connect.

Please check whether the EC2 security group is set to allow EC2 Instance Connect's IP range via SSH.
Search for "EC2_INSTANCE_CONNECT" to find the IP address.
Try registering the IP range of the region where your EC2 is running in the security group.
https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-instance-connect-prerequisites.html#ec2-instance-connect-setup-security-group
https://ip-ranges.amazonaws.com/ip-ranges.json

EXPERT
answered 2 years ago
EXPERT
reviewed 2 years ago
0

Hello,

This issue occurs when there are missing network configurations. Below are the possibilities to resolve the issue:

By following this you can resolve your issue.

Thanks:)

EXPERT
answered 2 years 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.