Disabling ssh timeouts?
sgk at troutmask.apl.washington.edu
Wed May 13 15:26:10 UTC 2009
On Wed, May 13, 2009 at 04:54:33PM +0200, Jose Garcia Juanino wrote:
> El miércoles 13 de mayo a las 07:03:33 CEST, Steve Kargl escribió:
> > Is there anyway to disable sshd from timing out a connection?
> > I've tried setting ClientAliveCountMax and ClientAliveInterval
> > and TCPKeepAlive in sshd.conf, but no combination that I've
> > tried has worked.
> > Running /usr/home/sgk/gcc/gcc4x/gcc/testsuite/gfortran.dg/dg.exp ...
> > Read from remote host troutmask.apl.washington.edu: Connection reset by peer
> > Connection to troutmask.apl.washington.edu closed.
> > The only way I'v efound to complete a run of the GCC testsuite
> > is to sit at the terminal and hit enter every so often. Also
> > note, nohup and backgrounding the job does not inhibit sshd
> > dropping the connection and losing all testsuite results.
> I have fixed that problems with ServerAliveInterval option. Give it a
> ssh -o "ServerAliveInterval 60" -l <user> <host>
> (screen is a goog idea, as other people have pointed out, but sometimes
> it is not posible to install programs on the server)
Thanks for the tip about ServerAliveInterval.
Also, thanks, everyone for the tip about screen.
More information about the freebsd-questions