From owner-freebsd-questions@FreeBSD.ORG Wed Mar 24 00:10:24 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 93C6916A4CE for ; Wed, 24 Mar 2004 00:10:24 -0800 (PST) Received: from gw-bj2.datamax.bg (datamax.wl.bitex.com [195.34.115.67]) by mx1.FreeBSD.org (Postfix) with ESMTP id F0A3843D53 for ; Wed, 24 Mar 2004 00:10:23 -0800 (PST) (envelope-from vd@datamax.bg) Received: from sinanica.lg2a.datamax (sinanica.lg2a.datamax [192.168.10.1]) by gw-bj2.datamax.bg (Postfix) with QMQP id E510187D5; Wed, 24 Mar 2004 10:10:18 +0200 (EET) Received: (nullmailer pid 22939 invoked by uid 1001); Wed, 24 Mar 2004 08:10:18 -0000 Date: Wed, 24 Mar 2004 10:10:18 +0200 From: Vasil Dimov To: m.seaman@infracaninophile.co.uk Message-ID: <20040324081018.GA22890@sinanica.lg2a.datamax> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20040313131705.GE98015@happy-idiot-talk.infracaninophile.co.uk> X-OS: FreeBSD 5.2.1-RELEASE-p3 User-Agent: Mutt/1.5.6i cc: ssheikh2000@hotmail.com cc: freebsd-questions@freebsd.org Subject: it takes a long long long time to time-out a login attempt X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: vd@datamax.bg List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 24 Mar 2004 08:10:24 -0000 > On Sat, Mar 13, 2004 at 04:21:58AM -0800, Sameer wrote: > > I'm trying to ssh into my FreeBSD (5.2.1-release sparc version) box from my > > desktop, however, it'll take a few seconds for the "login as" prompt to > > appear. I enter my the user name and hit enter. the login attempt then sits > > there for about 90 seconds w/o asking for the password, then the connection > > times out. > > > > > > > > Any ideas what's causing this? Do I need to put the workstation's > > information into the hosts file or something? > > > > > > > > The funny thing is that when I ssh from another server that's on the same > > VLAN as the FreeBSD box (I should mention that the workstation is on a > > different VLAN) the login process happens immediately. > > Sounds like classic DNS timeout problems. When you ssh into a box, it > will look up the IP number you're coming from in the DNS, and then > lookup the hostname it derives from that to make sure that the IP > number appears as listed for that address. OpenSSH_3.6.1p1 FreeBSD-20030924 Not exactly. sshd always tries to lookup IPaddr->hostname, but makes the "hostname->IPaddr match" check only if VerifyReverseMapping is "on" in sshd_config(5). It is "off" by default.