From owner-freebsd-questions@FreeBSD.ORG Mon Nov 22 21:01:19 2004 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 9165716A4EA for ; Mon, 22 Nov 2004 21:01:19 +0000 (GMT) Received: from cenn.mc.mpls.visi.com (cenn.mc.mpls.visi.com [208.42.156.9]) by mx1.FreeBSD.org (Postfix) with ESMTP id 54B0643D45 for ; Mon, 22 Nov 2004 21:01:19 +0000 (GMT) (envelope-from drue@therub.org) Received: from egypt.therub.org (therub.org [209.98.146.43]) by cenn.mc.mpls.visi.com (Postfix) with ESMTP id 608148128; Mon, 22 Nov 2004 15:01:05 -0600 (CST) Received: by egypt.therub.org (Postfix, from userid 1001) id 1D4484566C8; Mon, 22 Nov 2004 15:01:05 -0600 (CST) Date: Mon, 22 Nov 2004 15:01:05 -0600 From: Dan Rue To: I Nyoman Suka Ada Message-ID: <20041122210105.GJ62535@therub.org> References: <41A23DF4.2030107@kejadian.or.id> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <41A23DF4.2030107@kejadian.or.id> User-Agent: Mutt/1.4.2.1i cc: freebsd-questions@freebsd.org Subject: Re: slow SSH access from another FreeBSD, but not from WinXP 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: Mon, 22 Nov 2004 21:01:19 -0000 On Tue, Nov 23, 2004 at 03:28:52AM +0800, I Nyoman Suka Ada wrote: > Hi, > maybe this is more related to SSH rather than FreeBSD, > but thought I give it a shot here. > > SSH-ing to my FreeBSD box from Windows XP seems to have no problem. > But when I tried SSH-ing from another FreeBSD/Linux systems, > the time delay between connecting and the "password:" prompt > is very long. > > I googled this, read about placing some host entries on /etc/hosts. > But still, very slow. But the most interesting thing is that, why is it > not slow when SSH-ing from Win XP. > (I use putty in Win XP, and both ssh client and putty from FreeBSD/Linux > system). Delays like this are typically related to DNS. I'm guessing that your FreeBSD/Linux system doesn't have valid reverse DNS set up. You can either set up correct reverse dns, or just twiddle UseDNS in your /etc/ssh/sshd_config file. From `man sshd_config`: UseDNS Specifies whether sshd should lookup the remote host name and check that the resolved host name for the remote IP address maps back to the very same IP address. The default is ``yes''. Also you can try using ssh -v to see where the holdup is. HTH, dan