Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 13 May 2009 08:26:10 -0700
From:      Steve Kargl <sgk@troutmask.apl.washington.edu>
To:        Jose Garcia Juanino <jjuanino@gmail.com>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: Disabling ssh timeouts?
Message-ID:  <20090513152610.GA62964@troutmask.apl.washington.edu>
In-Reply-To: <20090513145432.GA10978@banach>
References:  <20090513050333.GA4509@troutmask.apl.washington.edu> <20090513145432.GA10978@banach>

next in thread | previous in thread | raw e-mail | index | archive | help
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
> try:
> 
> 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.

-- 
Steve



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