alper
alper

Reputation: 3410

Why cannot I ping a AWS server but connect via ssh?

I have created a linux node on Amazon (AWS) machine. I can ssh into the node but I cannot do ping into its IPv4 Public IP. What should I do to fix this issue?

Works:

ssh -v -i "my_pem.pem" ubuntu@<AmazonNode's_IP>

Does not work (returns %100 failure):

ping <AmazonNode's_IP>

I have also added following setting from https://stackoverflow.com/a/30544572/2402577 but it did not helped. enter image description here

enter image description here

enter image description here

Please note that when I did this setting, I can ping from another amazon node to an amazon node. But from a non-amazon node still I cannot do ping to the amazon node.

Thank you for your valuable time and help.

Upvotes: 1

Views: 1873

Answers (1)

markdwhite
markdwhite

Reputation: 2449

ICMP port is closed by default on AWS instances. You need to enable it in a security group.

Upvotes: 5

Related Questions