Skip to content

cannot access to EC2 instance

0

I created an EC2 instance with vpc, subnet and security group that let me access to my VM, however I cannot ping, ssh to the VM. Please help me.

below is the current status: instance summary Networking Security groups

2 Answers
3

Hello.

Is there an internet gateway attached to your VPC?
If you have not created it, please create it by following the steps in the document below.
https://docs.aws.amazon.com/vpc/latest/userguide/working-with-igw.html

Also, make sure that the route table for the subnet where EC2 is running has a route to the internet gateway configured.
https://docs.aws.amazon.com/vpc/latest/userguide/WorkWithRouteTables.html

If the network ACL settings have not been changed from the default settings, all communication should be permitted, but if the settings have been changed even once, please check again.

I don't think it's very relevant, but I think it will be useful when you create RDS etc. in the future if you also enable the DNS settings of the VPC.
https://docs.aws.amazon.com/vpc/latest/userguide/vpc-dns-updating.html

EXPERT

answered 2 years ago

EXPERT

reviewed 2 years ago

1

You need to create an Internet Gateway (IGW), associate it to your VPC, and add route on the subnet of your instance to reach 0.0.0.0/0 via the IGW.

AWS
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.