From owner-freebsd-questions@FreeBSD.ORG Tue Jul 1 16:44:32 2003 Return-Path: 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 B54BE37B401 for ; Tue, 1 Jul 2003 16:44:32 -0700 (PDT) Received: from empty1.ekahuna.com (empty1.ekahuna.com [198.144.200.196]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1677743F85 for ; Tue, 1 Jul 2003 16:44:28 -0700 (PDT) (envelope-from pjklist@ekahuna.com) Received: from pc-17 (dyn205.ekahuna.com [198.144.200.205]) by empty1.ekahuna.com (Post.Office MTA v3.5.3 release 223 ID# 0-0U10L2S100V35) with ESMTP id com for ; Tue, 1 Jul 2003 16:44:27 -0700 From: "Philip J. Koenig" Organization: The Electric Kahuna Organization To: questions@FreeBSD.ORG Date: Tue, 01 Jul 2003 16:44:26 -0700 MIME-Version: 1.0 Priority: normal X-mailer: Pegasus Mail for Windows (v4.02a) Content-type: text/plain; charset=US-ASCII Content-transfer-encoding: 7BIT Content-description: Mail message body Message-ID: <20030701234427538.AAA1087@empty1.ekahuna.com@dyn205.ekahuna.com> Subject: ssh keepalives X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: pjklist@ekahuna.com List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 01 Jul 2003 23:44:33 -0000 I'm having a problem with premature termination of ssh sessions after an idle period of a few minutes, getting a "connection reset by peer" message. I presume this is due to intermediate stateful firewalls closing the connection when no traffic passes for a period of time. In the past I've addressed this issue when I have control of the destination host, by including the following parameters in sshd_config: ClientAliveInterval 30 ClientAliveCountMax 4 However in this case I don't have control over the destination. It's a self-contained network device. man 5 ssh_conf says that "KeepAlive" is the default with ssh. Is there any other tactic I can use to keep these connections from closing after a few minutes of inactivity? Currently on FreeBSD 4.8-stable with OpenSSH_3.5p1 -- Philip J. Koenig pjklist@ekahuna.com Electric Kahuna Systems -- Computers & Communications for the New Millenium