title: Why cannot I ping a AWS server but connect via ssh?
body: <p>I have created a linux node on Amazon (<a href="https://aws.amazon.com" rel="nofollow noreferrer">AWS</a>) 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?</p>
  
  <p>Works:</p>
  
  <pre><code>ssh -v -i "my_pem.pem" ubuntu@&lt;AmazonNode's_IP&gt;
  </code></pre>
  
  <p>Does not work (returns %100 failure):</p>
  
  <pre><code>ping &lt;AmazonNode's_IP&gt;
  </code></pre>
  
  <p>I have also added following setting from <a href="https://stackoverflow.com/a/30544572/2402577">https://stackoverflow.com/a/30544572/2402577</a> but it did not helped.
  <a href="https://i.stack.imgur.com/8hPkH.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/8hPkH.png" alt="enter image description here"></a></p>
  
  <p><a href="https://i.stack.imgur.com/p4wnf.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/p4wnf.png" alt="enter image description here"></a></p>
  
  <p><a href="https://i.stack.imgur.com/LZiNN.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/LZiNN.png" alt="enter image description here"></a></p>
  
  <p>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.</p>
  
  <p>Thank you for your valuable time and help.</p>