juliushibert63
August 25th, 2011, 09:57 AM
I can't connect to a Ubuntu 10.04 machine via ssh unless I'm on my local network.
I've tried turning off my firewall (through Firestarter) which I would have thought would be causing the problem but not such luck. The problem has only just started occurring after switching my connection from Wifi to a LAN cable via an AV Power Plug LAN Adapter.
So here's my basic setup Host 1 (Ubuntu 10.04 machine that I'm trying to ssh into). This only accepts connections on a non default port number and only from IPs in my local network 192.168.0.1 - 192.168.0.254. Host 2 (DD-WRT router which I connect to first to then connect to Host 1) this accepts connections on the usual ssh port from the outside world.
When I'm on my macbook on Wifi I'm able to connect to Host 1 via ssh as per normal. However when I try to connect from the outside world (as I would have done previously when Host 1 was connected to the internet by Wifi and not LAN) I can get a connection to Host 2 fine. But once I try to connect from Host 2 to Host 1 (ie from the DD-WRT router to the Ubuntu 10.04 machine) I get the following error
root@DD-WRT:~# ssh gil@192.168.0.42 -p 55831
ssh: connection to gil@192.168.0.42:55831 exited: remote closed the connection
Anyone know why I can't seem to connect to Host 1 via ssh when connecting through Host 2?
I've tried turning off my firewall (through Firestarter) which I would have thought would be causing the problem but not such luck. The problem has only just started occurring after switching my connection from Wifi to a LAN cable via an AV Power Plug LAN Adapter.
So here's my basic setup Host 1 (Ubuntu 10.04 machine that I'm trying to ssh into). This only accepts connections on a non default port number and only from IPs in my local network 192.168.0.1 - 192.168.0.254. Host 2 (DD-WRT router which I connect to first to then connect to Host 1) this accepts connections on the usual ssh port from the outside world.
When I'm on my macbook on Wifi I'm able to connect to Host 1 via ssh as per normal. However when I try to connect from the outside world (as I would have done previously when Host 1 was connected to the internet by Wifi and not LAN) I can get a connection to Host 2 fine. But once I try to connect from Host 2 to Host 1 (ie from the DD-WRT router to the Ubuntu 10.04 machine) I get the following error
root@DD-WRT:~# ssh gil@192.168.0.42 -p 55831
ssh: connection to gil@192.168.0.42:55831 exited: remote closed the connection
Anyone know why I can't seem to connect to Host 1 via ssh when connecting through Host 2?