From owner-freebsd-questions@FreeBSD.ORG Sun Mar 11 17:18:51 2007 Return-Path: X-Original-To: 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 3C54416A401 for ; Sun, 11 Mar 2007 17:18:51 +0000 (UTC) (envelope-from alex@cshw.net) Received: from gothmog.akp-net.com (gothmog.akp-net.com [194.126.172.135]) by mx1.freebsd.org (Postfix) with ESMTP id CE55B13C44B for ; Sun, 11 Mar 2007 17:18:50 +0000 (UTC) (envelope-from alex@cshw.net) Received: from p579a89dd.dip.t-dialin.net ([87.154.137.221] helo=ANGBAND) by gothmog.akp-net.com with esmtpa (Exim 4.63) (envelope-from ) id 1HQRI8-00016P-G3 for questions@FreeBSD.org; Sun, 11 Mar 2007 17:53:06 +0100 From: "Alexander Schlichting" To: Date: Sun, 11 Mar 2007 17:52:25 +0100 Message-ID: <035c01c763fd$b7341cf0$259c56d0$@net> MIME-Version: 1.0 X-Mailer: Microsoft Office Outlook 12.0 Thread-Index: Acdj/aUGrc7Od5RsQWGDp/QmhA/4hg== Content-Language: de Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: Subject: OpenSSH Problem with disconnects 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: Sun, 11 Mar 2007 17:18:51 -0000 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