4

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.

1 Answers1

5

As @sbtkd85 notes, it's almost certainly because port forwarding needs to be set up at his router/access point.

Here's some related/maybe pertinent info: http://forum.portforward.com/YaBB.cgi?num=1139203841

Cheers, Robert

rjp
  • 146
  • 3
  • 2
    The hint that NAT is happening between his friend and The Internet is this: inet addr:192.168.1.2 The 192.168.x.x address is a "non-routable" IP address reserved for use inside intranets. –  Sep 13 '11 at 19:30