Skip to content

EC2 Status Check Fail Show No Error in spite of inability to access the instance via ssh and target group health check showing it as unhealthy

0

Hello fellow AWS developer.

I just encountered a weird problem.

My EC2 instance status check fail were all green, but I could not connect it with SSH, and the Load Balancer Target Group it belongs to showed it has unhealthy.

What could be the source of problem? Is it an error from EC2 status check system or any other causes?

Thank you in advance.

  • Can you elaborate on the error you are seeing when attempting to ssh into the instance? As for the target group health check, I would refer to the first answer to check the security group and ensure the instance is allowing connections from and to the load balancer.

asked 3 years ago470 views

1 Answer
1

Are the protocol ports that the load balancer uses for health checks and SSH connections allowed in the EC2 security group?
Also, since you are connected to EC2 via SSH, can you confirm that the subnet on which EC2 is running is a public subnet?
https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/authorizing-access-to-an-instance.html

EXPERT

answered 3 years ago

EXPERT

reviewed 3 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.