I am able to ping my friend but not able to do ssh. Why so? He is using a modem. I thought there might be some firewall enabled. I told him to type
#iptables -F
He did that, but still I am not able to do ssh on his system. How can I do this?
I get the error: ssh: connect to host 182.64.31.131 port 22: Connection refused
RESULT OF ifconfig on his system
inet addr:127.0.0.1 Mask:255.0.0.0
inet addr:192.168.1.2 Bcast:192.168.1.255 Mask:255.255.255.0
He told me his dynamic ip by using whatismyip.com
I tried ssh on that ip.
PS: sshd service is running on his system.
I tried nmap and came to know that port 22 is not opened.
sshd
is running on that machine? It is listening on all interfaces/addresses (ListenAddress
)? Are there any entries in/etc/hosts.deny
? There is a local address at the interface, so is port 22 forwarded to that machine? – pbm Sep 13 '11 at 17:29