• Some users have recently had their accounts hijacked. It seems that the now defunct EVGA forums might have compromised your password there and seems many are using the same PW here. We would suggest you UPDATE YOUR PASSWORD and TURN ON 2FA for your account here to further secure it. None of the compromised accounts had 2FA turned on.
    Once you have enabled 2FA, your account will be updated soon to show a badge, letting other members know that you use 2FA to protect your account. This should be beneficial for everyone that uses FSFT.

Can't SSH past router

allysan

n00b
Joined
Oct 22, 2007
Messages
13
(I hope this question is appropriate to this forum, I apologize if it is not)

I'm trying to SSH to my home computer from work. My home machines are all behind a router, and I *can* SSH to that successfully, but when I try to SSH from the router to the machine, I get the following:

Code:
ssh: exited: Error connecting: No rout to host

This happens when I try 'ssh [hostname]' and 'ssh [local ip of hostname]'.

I've also tried 'telnet hostname' just for kicks and that returns the following:

Code:
telnet: Unable to connect to remote host (local ip of hostname): No route to host

I've tried 'ssh [hostname]:22' as well as 80 and 1111 (which is the port I used to ssh into the router) all of which returned this error:

Code:
ssh: exited: Error connecting: Connection refused

Finally, I've tried pinging the machine from the router and that just hangs.

The machine I'm trying to connect to has all connections enabled for sshd in hosts.allow and sshd is running. I'm trying to connect from a Vista machine through a Linksys WRT54G running DD-WRT firmware to a Gentoo Linux machine (if any of that matters). Please help!
 
Sounds like a firewall issue on the router not allowing the connection.

What are you useing for a router?
 
I'm using a Linksys WRT54G with the DD-WRT firmware. As far as I can tell, there isn't a firewall set up. Also, I was previously able to have someone ssh through my router (with the same settings I have now) to a different machine on my home network... so I don't think it's a firewall issue (but I could well be wrong).
 
What if you setup portforwarding on the router to push 222 to 22 on the internal machine?

Then just ssh to 222 on your router and you should connect to the internal machine if it works correctly.
 
Some thoughts:

How are you able to differentiate between your machine and router unless the ports have been changed? Make sure that the correct ports are forwarded to the correct device and that the IP addresses are set properly.

Make sure the key exchange is set up properly if you're using it, too.
 
Back
Top