From owner-freebsd-questions@FreeBSD.ORG Mon Mar 12 03:17:01 2007 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 32F9E16A400 for ; Mon, 12 Mar 2007 03:17:01 +0000 (UTC) (envelope-from freebsd@dfwlp.com) Received: from pollux.dfwlp.com (rrcs-64-183-212-242.sw.biz.rr.com [64.183.212.242]) by mx1.freebsd.org (Postfix) with ESMTP id DDFE613C44B for ; Mon, 12 Mar 2007 03:17:00 +0000 (UTC) (envelope-from freebsd@dfwlp.com) Received: from rigel.dfwlp.com (rigel.dfwlp.com [192.168.125.81]) (authenticated bits=0) by pollux.dfwlp.com (8.13.8/8.13.8) with ESMTP id l2C3Gw6e015088 for ; Sun, 11 Mar 2007 22:16:58 -0500 (CDT) (envelope-from freebsd@dfwlp.com) Date: Sun, 11 Mar 2007 22:16:57 -0500 From: Jonathan horne To: freebsd-questions@freebsd.org Message-Id: <20070311221657.531106c6.freebsd@dfwlp.com> In-Reply-To: <03aa01c7642c$11878060$34968120$@net> References: <03aa01c7642c$11878060$34968120$@net> X-Mailer: Sylpheed version 2.2.9 (GTK+ 2.10.6; i386-portbld-freebsd6.2) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-4.4 required=3.6 tests=ALL_TRUSTED,AWL,BAYES_00 autolearn=ham version=3.1.8 X-Spam-Checker-Version: SpamAssassin 3.1.8 (2007-02-13) on pollux.dfwlp.com Subject: Re: Problems with SSHD 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 Mar 2007 03:17:01 -0000 On Sun, 11 Mar 2007 23:24:13 +0100 "Alexander Schlichting" wrote: > > > Hi, > > > > I am having a big problem with the OpenSSH Daemon on my server. Whenever I > am connected to the server and the connection is idle for a few seconds it > gets disconnected. It's almost impossible to work from remote on the server > when the connection is always getting dropped. The server is running FreeBSD > angmar.domain.com 6.2-RELEASE FreeBSD 6.2-RELEASE #0: Fri Jan 12 11:05:30 > UTC 2007 root@dessler.cse.buffalo.edu:/usr/obj/usr/src/sys/SMP i386 and > the SSHD installed by sysinstall OpenSSH_4.5p1 FreeBSD-20061110, OpenSSL > 0.9.7e-p1 25 Oct 2004 . I tried a complete FreeBSD reinstall but it did not > help, I tried various settings like KeepAlive TCPKeepAlive but they did not > help either. I upgraded OpenSSL to 0.9.8e and I installed OpenSSH 4.6p1 but > it did not solve the problem. When I run SSH with loglevel debug I see this > in the auth.log when I am getting disconnected: Read error from remote host > 192.168.2.100: Connection reset by peer . When I use strace to monitor the > process I see this on disconnect > > > > 643 wait4(-1, [WIFEXITED(s) && WEXITSTATUS(s) == 0], WNOHANG, NULL) = 4975 > > 643 wait4(-1, 0xbfbfdc9c, WNOHANG, NULL) = -1 ECHILD (No child processes) > > 643 syscall_416(0x14, 0, 0xbfbfdc20) = 0 > > 643 syscall_417(0xbfbfdcd0) = -1 (errno 4) > > 643 select(7, [3 4], NULL, NULL, NULL > > > > I tried to find information's about syscall_417 but had no luck with that. I > am stuck here and have no idea what to do. When I am connected to the server > by FTP I don't get disconnected when the connection is idle ( no nohup or so > being sent ) and when I connect by Telnet I also don't get disconnected when > the connection is idle. I am not sure if I should add the dmesg output here > for sys specs or not. I don't do it now but can give it if needed. > > > > I installed Debian on another HDD of the server today and I am not having > any problems there. No SSH disconnects all the time. Thanks for any help. > > > > -Alex > out of curiosity, what kind of nic is in the machine, and did you try swapping it with another? cheers, jonathan