From owner-freebsd-questions@FreeBSD.ORG Wed Feb 23 06:19:25 2005 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 4357A16A4CE for ; Wed, 23 Feb 2005 06:19:25 +0000 (GMT) Received: from zoot.lafn.org (zoot.lafn.ORG [206.117.18.6]) by mx1.FreeBSD.org (Postfix) with ESMTP id EE83843D55 for ; Wed, 23 Feb 2005 06:19:24 +0000 (GMT) (envelope-from bc979@lafn.org) Received: from [10.0.1.90] ([4.28.157.47]) (authenticated bits=0) by zoot.lafn.org (8.13.1/8.13.1) with ESMTP id j1N6JJ1J028722 (version=TLSv1/SSLv3 cipher=RC4-SHA bits=128 verify=NO) for ; Tue, 22 Feb 2005 22:19:24 -0800 (PST) (envelope-from bc979@lafn.org) Mime-Version: 1.0 (Apple Message framework v619.2) In-Reply-To: <20050222215018.GA73127@freeze.org> References: <20050222211148.GA39859@freeze.org> <20050222215018.GA73127@freeze.org> Content-Type: text/plain; charset=US-ASCII; format=flowed Message-Id: <589fb93f8c712915e92a553b98997bb8@lafn.org> Content-Transfer-Encoding: 7bit From: Doug Hardie Date: Tue, 22 Feb 2005 22:19:18 -0800 To: FreeBSD Questions X-Mailer: Apple Mail (2.619.2) X-Virus-Scanned: ClamAV version 0.82, clamav-milter version 0.82 on zoot.lafn.org X-Virus-Status: Clean Subject: Re: SSH terminal locking up from OS X to FreeBSD X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 23 Feb 2005 06:19:25 -0000 On Feb 22, 2005, at 13:50, jim@freeze.org wrote: > * Eric F Crist [2005-02-22 15:35:53 > -0600]: > >> On Feb 22, 2005, at 3:11 PM, jim@freeze.org wrote: >> >> What version of Mac OS X are you using? All of my workstations are >> Mac >> OS X, and all but one server (an old cobalt raq 2) are running FreeBSD >> 5.3, and I have never seen a problem with using ssh from a terminal to >> a FreeBSD system. > > OS X is always the latest, currently 10.3.8. > I have no control over the version this > particular FreeBSD system, but this problem has > persisted for several versions of Mac OS X and > FreeBSD. I have been using ssh from my Macs to FreeBSD versions from 2.5 and up. Currently I have servers running 4.6 and 5.3. My connections stay active for one hour without problems. The one hour limit is from an undocumented feature in Apple's Airport that terminates a connection if there is no activity for an hour. The configuration on both ends is out of the box except that I force version 2 on both machines and have changed the port away from 22. To see what is happening using tcpdump do the following on both machines as root: 1. tcpdump -xXs1500 port 22 > xxx (xxx is some file name to save the trace) 2.open the connection and cause it to fail 3. terminate the tcpdumps. 4. The traces in the xxx files will be time stamped and you should be able to check them side by side and watch what happens. One or the other will probably stop responding. Another thing that may help is to use (as root) ktrace on the sshd server and on the ssh client. That will generate a lot of output but may help with the tcpdump to see why the problem is occuring.