ping fails but ssh succeeds

Solution 1:

I think it is a firewall issue.

If your operating system is Linux:

Type sudo iptables -L.

If there is anything like

DROP       icmp --  anywhere             localhost

Run:

sudo iptables -D INPUT "n"

where n is the number of your iptable rule you found running iptables -L.