Disabling ssh timeouts?

Jose Garcia Juanino jjuanino at gmail.com
Wed May 13 14:54:41 UTC 2009

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)

Best regards
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 196 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-questions/attachments/20090513/deb6ef59/attachment.pgp

More information about the freebsd-questions mailing list