Ssh – ping fails but ssh succeeds

firewallpingssh

I'm facing a situation where one app(using ssh) can connect from Machine A (Linux) to Machine B (windows), whereas Machine A cannot ping Machine B. Another app on Machine A which connects to Machine B (not using ssh) is also failing to connect

Can someone please tell me the reasons for the same? I suspect a firewall issue. Can this be due to a firewall? If so why does ssh still connect? Also how do I check for blocked ports and unblock the same?

Adding more information. Sorry for not providing the same before.
I'm using a Windows 7 operating system.
Running netsh advfirewall firewall returns The service has not been started.
It's on a company network so I'm sure there must be an external firewall which I would not be able to modify.

Best Answer

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.