From owner-freebsd-questions Tue Oct 8 12:39:22 2002 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 A6BA837B401 for ; Tue, 8 Oct 2002 12:39:20 -0700 (PDT) Received: from smtp.infracaninophile.co.uk (ns0.infracaninophile.co.uk [81.2.69.218]) by mx1.FreeBSD.org (Postfix) with ESMTP id 42B0943E6E for ; Tue, 8 Oct 2002 12:39:19 -0700 (PDT) (envelope-from m.seaman@infracaninophile.co.uk) Received: from happy-idiot-talk.infracaninophile.co.uk (localhost.infracaninophile.co.uk [IPv6:::1]) by smtp.infracaninophile.co.uk (8.12.6/8.12.6) with ESMTP id g98JdHVc031472; Tue, 8 Oct 2002 20:39:17 +0100 (BST) (envelope-from matthew@happy-idiot-talk.infracaninophile.co.uk) Received: (from matthew@localhost) by happy-idiot-talk.infracaninophile.co.uk (8.12.6/8.12.6/Submit) id g98JdCWA031471; Tue, 8 Oct 2002 20:39:12 +0100 (BST) Date: Tue, 8 Oct 2002 20:39:12 +0100 From: Matthew Seaman To: Michelle Weeks Cc: freebsd-questions@FreeBSD.ORG Subject: Re: ssh write failed Message-ID: <20021008193912.GA30598@happy-idiot-talk.infracaninophi> Mail-Followup-To: Matthew Seaman , Michelle Weeks , freebsd-questions@FreeBSD.ORG References: <000701c26ee9$8b49cc60$0764a8c0@cyberzone.odessos.org> <8F3A3AAF-DADC-11D6-B3C9-00039368B8EC@mindspring.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <8F3A3AAF-DADC-11D6-B3C9-00039368B8EC@mindspring.com> User-Agent: Mutt/1.5.1i X-Spam-Status: No, hits=-14.1 required=5.0 tests=IN_REP_TO,QUOTED_EMAIL_TEXT,REFERENCES,SPAM_PHRASE_01_02, USER_AGENT,USER_AGENT_MUTT version=2.41 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 On Tue, Oct 08, 2002 at 09:39:48AM -0700, Michelle Weeks wrote: > i am having problems using ssh to login remotely to our freebsd 4.6.2 > server. whenever i remain inactive for more than a few minutes, i get > kicked out. when i log back in, i get the following error: > > Oct 8 10:35:16 louie sshd[18801]: fatal: Write failed: Permission denied > Oct 8 10:35:16 louie sshd[18801]: fatal: Write failed: Permission denied > > i'm not sure what could be causing this? ipfw, probably. Sounds like a dynamic rule is timing out in the middle of your ssh session. You'll either have to switch to using static rules for ssh, of tweak the dynamic ruleset timing sysctls to something that suits you better. If you were running a recent version of -STABLE, you could have tried the IPFW2 stuff --- it has a "keepalive" feature that prevents this sort of annoyance. Add: options IPFW2 to your kernel config, and IPFW2=yes to /etc/make.conf, and go through the usual {build,install}procedure. Cheers, Matthew -- Dr Matthew J Seaman MA, D.Phil. 26 The Paddocks Savill Way Marlow Tel: +44 1628 476614 Bucks., SL7 1TH UK To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message