[PLUG] ssh connection hangs after idling

Terry Griffin griffint at pobox.com
Wed May 28 17:56:54 UTC 2008


> Hi:
>
> I notice this behavior on my Ubuntu box.  If I ssh into it, steps away for
> a
> while and comes back, the ssh session
> would hang.  I added
>
>     ServerAliveInterval 155
>
> to /etc/ssh/ssh_config but it does not see to solve the problem.
>
> Is there another ssh config I can put in so my ssh connections won't hang
> after idling for a period of time?
>
> Thanks
>
> --Vincent

I had a similar problem with connections getting dropped, not so much
hanging as you describe. In my case it turned out to be a timeout on
some firewall or router between the client and the server. I fixed
this by using login_keepalived on the server end.

   http://www.ekenberg.se/projects/login_keepalived/

Terry




More information about the PLUG mailing list