From owner-freebsd-questions Fri Mar 22 2:33:41 2002 Delivered-To: freebsd-questions@freebsd.org Received: from lv.raad.tartu.ee (lv.raad.tartu.ee [194.126.106.110]) by hub.freebsd.org (Postfix) with ESMTP id AC2CE37B400 for ; Fri, 22 Mar 2002 02:33:36 -0800 (PST) Received: Message by Barricade lv.raad.tartu.ee with ESMTP id g2MAXSI17062; Fri, 22 Mar 2002 12:33:29 +0200 Message-Id: <200203221033.g2MAXSI17062@lv.raad.tartu.ee> Received: from SpoolDir by INFO (Mercury 1.48); 22 Mar 02 12:32:44 +0200 From: "Toomas Aas" Organization: Tartu City Government To: "James E. Pace" , freebsd-questions@freebsd.org Date: Fri, 22 Mar 2002 12:32:40 +0200 MIME-Version: 1.0 Content-type: text/plain; charset=US-ASCII Content-transfer-encoding: 7BIT Subject: Re: ssh session closing? In-reply-to: <20020320153932.Q57923-100000@tigger.pacehouse.com> X-info: Headers changed by Barricade Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Hi James! On 20 Mar 02 at 15:41 you wrote: > If I leave ssh sessions to my system idle for a while, they close. > How can I keep this from happening? If you add 'KeepAlive yes' to /etc/ssh/sshd_config (assuming ssh from base system) on the server, maybe this will help? I have found cases where it doesn't help. Specifically, when i ssh from behind a firewall to a host outside the firewall. I've heard that some firewalls have a habit of "eating" keepalive packets. In these cases I've found it helpful to use ssh2 protocol. After that my ssh sessions stay alive indefinitely even if sshd on server has 'KeepAlive no' and firewall has timeout for idle tcp connections. -- Toomas Aas | toomas.aas@raad.tartu.ee | http://www.raad.tartu.ee/~toomas/ * It's better to be rich and healthy than poor and sick. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message