PDA

View Full Version : SSH connections dying without apparent reason


Fibonacci
2006-05-15, 07:48 PM CDT
Hello,

I have sshd always running on my machine. It's apparently running well, because I can ssh to my university, ssh back here, and everything works fine. But whenever I try to access my machine while physically on another computer (using ssh on Linux, putty on Windows), even from the (only) other computer in my LAN, the connection, idle or not, dies after a while without any apparent reason. In Windows I get an error message from putty: "Network error: Software caused connection abort." In Linux I get nothing, but ssh stops responding to any user input.

What can I do to prevent that?

Thanks in advance,

-Fibo

woppa30
2006-05-16, 01:21 AM CDT
I get a similar error when I ssh from work (winxp, putty) to home (FC5). I am fairly certain that in my case it happens because of inactivity. If I for example run "top" the connection stays open all day long. I am certain this is caused by the company firewall (I need special permission to even access port 22). You say that this happens on your home LAN and even when the connection isn't idle ??
Our situation may not be the same but I hope this helps. It may be something to do with your switch / router / firewall.
Sorry I can't be more help,
woppa

Fibonacci
2006-05-16, 02:48 AM CDT
I get a similar error when I ssh from work (winxp, putty) to home (FC5). I am fairly certain that in my case it happens because of inactivity. If I for example run "top" the connection stays open all day long. I am certain this is caused by the company firewall (I need special permission to even access port 22). You say that this happens on your home LAN and even when the connection isn't idle ??

Yes. I do, for example, ls, ls, ls, ... and so on. A delay of under five seconds (which I don't think is enough to mark it as idle) and the connection dies.

Our situation may not be the same but I hope this helps. It may be something to do with your switch / router / firewall.

Hm? I think it's working fine since I can at least open the connection using my router's IP. And mainly because I don't know what or how to check ^^U

Sorry I can't be more help,
woppa

Thanks anyway.

Any more ideas out there?

-Fibo