From owner-freebsd-questions@FreeBSD.ORG Mon Sep 12 21:56:08 2005 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4214A16A41F for ; Mon, 12 Sep 2005 21:56:08 +0000 (GMT) (envelope-from smurphy@calarts.edu) Received: from muse.calarts.edu (muse.calarts.edu [198.182.157.5]) by mx1.FreeBSD.org (Postfix) with ESMTP id ED52B43D48 for ; Mon, 12 Sep 2005 21:56:07 +0000 (GMT) (envelope-from smurphy@calarts.edu) Received: from [172.19.19.117] (rfc1918-address.calarts.edu [172.19.19.117] (may be forged)) by muse.calarts.edu (8.11.7p1+Sun/8.11.7) with ESMTP id j8CLu6f27736 for ; Mon, 12 Sep 2005 14:56:06 -0700 (PDT) Message-ID: <4325F99F.2090505@calarts.edu> Date: Mon, 12 Sep 2005 14:56:47 -0700 From: Sean Murphy User-Agent: Mozilla Thunderbird 1.0.6 (Windows/20050716) X-Accept-Language: en-us, en MIME-Version: 1.0 To: freebsd-questions@freebsd.org References: <4325C7D3.7060409@calarts.edu> <20050912185417.GB30659@localhost.localdomain> In-Reply-To: <20050912185417.GB30659@localhost.localdomain> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: 5.4 SSH Timeout help 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: Mon, 12 Sep 2005 21:56:08 -0000 Will Maier wrote: > On Mon, Sep 12, 2005 at 11:24:19AM -0700, Sean Murphy wrote: > >>I SSH into the server with no problem and I'm able to do work >>however when I walk away from my desk SSH closes the session. It >>seems the timeout is 5 or 10 min how can I change this setting for >>all of our users? > > > What shell are the users using? If they're using 'tcsh' or certain > other shells, they might be running up against the shell's > autologout option. See the man page for tcsh (1): > > | The first word is the number of minutes of inactivity before > | automatic logout. The optional second word is the number of minutes > | of inactivity before automatic locking. When the shell > | automatically logs out, it prints `auto-logout', sets the variable > | logout to `automatic' and exits. When the shell automatically > | locks, the user is required to enter his password to continue > | working. Five incorrect attempts result in automatic logout. Set to > | `60' (automatic logout after 60 minutes, and no locking) by default > | in login and superuser shells, but not if the shell thinks it is > | running under a window system (i.e., the DISPLAY environment > | variable is set), the tty is a pseudo-tty (pty) or the shell was > | not so compiled (see the version shell variable). See also the > | afsuser and logout shell variables. > There was no timeout option with the shell I was using (the bourne shell /bin/sh) However I did find the problem. The router was timing out NAT translations after 10 min of no packets transversing. This corresponded to my timeout. I fixed the problem by editing the /etc/ssh/sshd_config Uncommenting the line ClientAliveInterval 300 and restarted sshd This fixed my problem. Thanks