From owner-freebsd-current@FreeBSD.ORG Fri Dec 23 13:30:00 2005 Return-Path: X-Original-To: current@freebsd.org Delivered-To: freebsd-current@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6F55116A423; Fri, 23 Dec 2005 13:30:00 +0000 (GMT) (envelope-from kobi@macron.co.il) Received: from mxout1.netvision.net.il (mxout1.netvision.net.il [194.90.9.20]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3CF4843D53; Fri, 23 Dec 2005 13:29:44 +0000 (GMT) (envelope-from kobi@macron.co.il) Received: from alpha.nonstop.co.il ([217.132.8.83]) by mxout1.netvision.net.il (Sun Java System Messaging Server 6.1 HotFix 0.11 (built Jan 28 2005)) with ESMTP id <0IRY00FKLDHD6X00@mxout1.netvision.net.il>; Fri, 23 Dec 2005 15:29:39 +0200 (IST) Received: from localhost ([127.0.0.1] helo=home1) by alpha.nonstop.co.il with smtp (Exim 4.44) id 1EpmzA-0000ja-I0; Fri, 23 Dec 2005 15:29:28 +0200 Date: Fri, 23 Dec 2005 15:29:17 +0200 From: Kobi Shmueli To: "Michael A. Koerber" Message-id: <001301c607c4$e04e2540$80cea8c0@home1> MIME-version: 1.0 X-MIMEOLE: Produced By Microsoft MimeOLE V6.00.2800.1506 X-Mailer: Microsoft Outlook Express 6.00.2800.1506 Content-type: text/plain; charset=ISO-8859-1 Content-transfer-encoding: 7BIT X-Priority: 3 X-MSMail-priority: Normal References: <43ABF6E4.2090908@ll.mit.edu> X-Mailman-Approved-At: Fri, 23 Dec 2005 13:34:44 +0000 Cc: stable@freebsd.org, current@freebsd.org Subject: Re: SSH login takes very long time...sometimes X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 23 Dec 2005 13:30:00 -0000 Michael A. Koerber wrote: > I have three machines that have had 5.4 and 6.0 installed. Two of the three machines have very > well behaved "ssh". However, the machine (laptop) named OBOE does not. > > Specifically "ssh oboe" will (most of the time) hang for around one minute before asking for a > prompt. However, if I'm logged into OBOE and "ssh BSD" (one of the other machines) a password is > requested within a couple seconds. (I said most of the time, since on occasion I can reboot OBOE > and ssh will work just fine...hmmm.) > > I have looked through the /var/log files for clues and skimmed "man ssh" for time out related > stuff, but no luck. > > Where should I start looking for clues? Try checking /etc/resolv.conf on oboe first, adding a static entry to /etc/hosts of the remote ip/host should speed dns checks as well. You can also run ssh in verbose mode (ssh -v oboe) or/and run sshd in debug mode (sshd -d). -Kobi.