can't ssh within LAN, but can connect from outside
Posted
by
Patrick B.
on Super User
See other posts from Super User
or by Patrick B.
Published on 2012-07-08T00:42:48Z
Indexed on
2012/07/08
3:18 UTC
Read the original article
Hit count: 459
A strange issue: I have a desktop running Ubuntu 10.04 behind a Netgear WNR1000 router performing NAT. I would like to be able to ssh into the desktop from my laptop (running Windows 7 and Cygwin). When at home, both the desktop and the laptop are connected by wireless (the desktop is in a different room from the router). sshd seems to be running fine, since ssh localhost
from the desktop works without trouble. Also, ssh my.ip.address
from my laptop when it is not behind the router works fine (I am forwarding port 22 on the router to my desktop). However, ssh same.ip.address
from within the LAN fails with "Connection refused". ssh 192.168.local.ip.address
fails with a different message, "Connection timed out". I can connect if I first ssh to a machine outside the LAN.
So far I haven't found anything with Google because with the search terms that seem like they would be relevant, the vast majority of people have the opposite problem - i.e., they can't connect from outside the LAN but can connect within it. I can port forward through a remote server when I'm at home, but this seems like a totally absurd way to connect two computers on the same home LAN. I have already tried stopping and starting sshd on the desktop. Any thoughts?
© Super User or respective owner