- Newest
- Most votes
- Most comments
Did you check if one of security group attached your EC2 instance allows TCP port 22.
Is your instance is deployed in public subnet, make sure that subnet has internet gateway attached to it's route table, otherwise resources inside that subnet can't reach to internet and hence that subnet is not public.
If EC2 instance in private subnet, then I'd suggest you to follow this blog post, which explains, how can you connect to your private ec2 instance using EC2 Instance Connect Endpoint.
Also, I'd suggest you to check Resolution section at this re:Post Knowledge Center Article, which has lot of details and cover the issues, which may be encountered while EC2 Instance connect.
Here is the AWS documentation for EC2 Instance Connect.
Hope you find this useful.
Comment here if you have additional questions, happy to help.
Abhishek
Relevant content
- AWS OFFICIALUpdated 5 months ago

Were you able to find the cause of issue, comment here if you have additional. I'd be glad to help.