From owner-freebsd-questions@FreeBSD.ORG Wed May 13 15:44:25 2009 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id C2D551065693 for ; Wed, 13 May 2009 15:44:25 +0000 (UTC) (envelope-from jjuanino@gmail.com) Received: from fk-out-0910.google.com (fk-out-0910.google.com [209.85.128.191]) by mx1.freebsd.org (Postfix) with ESMTP id 491F28FC38 for ; Wed, 13 May 2009 15:44:25 +0000 (UTC) (envelope-from jjuanino@gmail.com) Received: by fk-out-0910.google.com with SMTP id f33so373378fkf.11 for ; Wed, 13 May 2009 08:44:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:date:from:to:cc:subject :message-id:references:mime-version:content-type:content-disposition :in-reply-to:x-operating-system:user-agent; bh=r+In/i9yfZ9QtcnJzgVfl8VKmEfcUpug9XVB1C8CKI0=; b=N8bcYkzv/yuHTqxTx7D049eYFkWI3QQ6teBlFx5k+dwXgJfBZed8+FzEboa+uaIQY+ LGPLniBXb/aGSbqLVrcslJHZjQSuaHMX2nANPmDbpb0p86gMYWZJNc6aVNIwIxccM0Jy PonJHbBXBb9Gn2QynIvj+WPp6IbSgsqG/cYDE= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=date:from:to:cc:subject:message-id:references:mime-version :content-type:content-disposition:in-reply-to:x-operating-system :user-agent; b=sKBxatbiaagCR62vyUrD7YVvmDiNopVOdhvgjN+jX5umrpdVf435RC+dIdVhHyu0Og gE5IFTYW+YXmM6KZ7Iw3ShrfEZK3zqZx9eI5fk3sGV2vyhM5y4loxeuSWW0iCijWn7BC iRNFh+hmTDC40exbpCVt7N9L9xG+3zx0kFwpo= Received: by 10.103.243.9 with SMTP id v9mr780453mur.91.1242229464319; Wed, 13 May 2009 08:44:24 -0700 (PDT) Received: from banach (22.pool85-60-101.dynamic.orange.es [85.60.101.22]) by mx.google.com with ESMTPS id w5sm285695mue.34.2009.05.13.08.44.22 (version=SSLv3 cipher=RC4-MD5); Wed, 13 May 2009 08:44:23 -0700 (PDT) Date: Wed, 13 May 2009 17:44:18 +0200 From: Jose Garcia Juanino To: Steve Kargl Message-ID: <20090513154417.GA11716@banach> References: <20090513050333.GA4509@troutmask.apl.washington.edu> <20090513145432.GA10978@banach> <20090513152610.GA62964@troutmask.apl.washington.edu> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="2oS5YaxWCcQjTEyO" Content-Disposition: inline In-Reply-To: <20090513152610.GA62964@troutmask.apl.washington.edu> X-Operating-System: FreeBSD 7.2-RELEASE User-Agent: Mutt/1.5.19 (2009-01-05) Cc: freebsd-questions@freebsd.org Subject: Re: Disabling ssh timeouts? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 13 May 2009 15:44:26 -0000 --2oS5YaxWCcQjTEyO Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable El mi=E9rcoles 13 de mayo a las 17:26:10 CEST, Steve Kargl escribi=F3: > On Wed, May 13, 2009 at 04:54:33PM +0200, Jose Garcia Juanino wrote: > > El mi=E9rcoles 13 de mayo a las 07:03:33 CEST, Steve Kargl escribi=F3: > > > 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. > > >=20 > > > > > > Running /usr/home/sgk/gcc/gcc4x/gcc/testsuite/gfortran.dg/dg.exp ... > > >=20 > > > Read from remote host troutmask.apl.washington.edu: Connection reset = by peer > > > Connection to troutmask.apl.washington.edu closed. > > >=20 > > > 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. > >=20 > > I have fixed that problems with ServerAliveInterval option. Give it a > > try: > >=20 > > ssh -o "ServerAliveInterval 60" -l > >=20 > > (screen is a goog idea, as other people have pointed out, but sometimes > > it is not posible to install programs on the server) > >=20 >=20 > Thanks for the tip about ServerAliveInterval. >=20 > Also, thanks, everyone for the tip about screen. A last tip, if ServerAliveInterval does not work as expected: $ ssh -l $ gccCompilation > /tmp/gccCompilation.log 2>&1 < /dev/null At this point, it would be possible to exit from the ssh session with "exit" or CTRL+D. Yo only must to guaranteed this process will not output anything to stdout, and will not read anything from stdin. Best regards --2oS5YaxWCcQjTEyO Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.11 (FreeBSD) iEYEARECAAYFAkoK6tEACgkQFOo0zaS9RnIV/gCeOjdy06RpOEA4y39v3qhBse4v N2cAnRXlXPUR0McKhfN9uoi27uEvCAwa =IRDM -----END PGP SIGNATURE----- --2oS5YaxWCcQjTEyO--