Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 13 May 2009 10:19:43 -0400
From:      "Trevor S. Cornpropst" <tcornpropst@cox.net>
To:        freebsd-questions@freebsd.org
Subject:   Re: Disabling ssh timeouts?
Message-ID:  <20090513101943.6dc0514a@shiloh.cornpropst.net>
In-Reply-To: <20090513050333.GA4509@troutmask.apl.washington.edu>
References:  <20090513050333.GA4509@troutmask.apl.washington.edu>

next in thread | previous in thread | raw e-mail | index | archive | help
On Tue, 12 May 2009 22:03:33 -0700
Steve Kargl <sgk@troutmask.apl.washington.edu> wrote:

> 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.
> 
> I'm trying to running the GCC testsuite, which is not an 
> interactive job.  Once it starts, it writes to stdout when
> an error occurs or the testsuite moves to a new major
> test category.  The last few lines of output are 
> 
> Running target unix
> Using /usr/X11R6/share/dejagnu/baseboards/unix.exp as board
> description file for target.
> Using /usr/X11R6/share/dejagnu/config/unix.exp as generic interface
> file for target.
> Using /usr/home/sgk/gcc/gcc4x/gcc/testsuite/config/default.exp as
> tool-and-target-specific interface file.
> Running /usr/home/sgk/gcc/gcc4x/gcc/testsuite/gfortran.dg/debug/debug.exp ...
> 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.
> 

If you are a csh/tcsh user, you can also 'unset autologout' in your
shell and see if that helps.

Trevor



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20090513101943.6dc0514a>