From owner-freebsd-questions@FreeBSD.ORG Mon Mar 21 12:35:21 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 9B7C316A4CE for ; Mon, 21 Mar 2005 12:35:21 +0000 (GMT) Received: from smtp.nexband.com (valinux.intop.net [206.156.254.23]) by mx1.FreeBSD.org (Postfix) with ESMTP id F2AE843D2D for ; Mon, 21 Mar 2005 12:35:20 +0000 (GMT) (envelope-from alias3@crotchett.com) Received: from [192.168.1.102] (208-149-64-30.adsl.nexband.com [208.149.64.30]) by smtp.nexband.com (8.12.11/8.12.11) with ESMTP id j2LCZKd5019499 for ; Mon, 21 Mar 2005 06:35:20 -0600 Message-ID: <423EBF85.60500@crotchett.com> Date: Mon, 21 Mar 2005 06:35:17 -0600 From: backdoc User-Agent: Mozilla Thunderbird 1.0 (X11/20041206) X-Accept-Language: en-us, en MIME-Version: 1.0 To: freebsd-questions@freebsd.org References: <423E116D.50805@usmstudent.com> In-Reply-To: <423E116D.50805@usmstudent.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: ssh password delay 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, 21 Mar 2005 12:35:21 -0000 Additional info. I started sshd with -ddd. It is definitely hanging on the line: "Trying to reverse map address 192.168.1.102." Now, I'm not sure how to fix that. BTW, I do have VerifyReverseMapping set to "NO" in sshd_config. But, that seems to be being ignored. Any suggestions? darren darren wrote: > I could use some help troubleshooting a problem that I am having with > long delays before receiving a password prompt when I log onto my > FreeBSD box via ssh. > > I have done quite a bit of googling and I realize that the problem > likely has something to do with reverse DNS lookups. But, I don't know > how to pinpoint the problem from there. I've basically been playing > with the /etc/resolv.conf and /etc/hosts settings. In my hosts file, I > have an entry for the private IP of my Linux box with its hostname > (which is not a FQDN) and my resolv.conf file looks like: > > domain myrealdomain.com //I just added this, but no noticeable help > search myrealdomain.com > nameserver my.ip's.dns.numbers > nameserver my.ip's.dns.numbers2 > > Here's a more detailed explanation of the problem. To me, the problem > seems very peculiar. The problem only exists whenever I use my laptop > (which is running Linux) from within my own LAN. I can get around it > by logging onto my ISP's server or my school's server (either one) and > then logging back into my FreeBSD box from there. If I am at school > with my laptop, I can even log into my FreeBSD server at home directly > without a delay. But, if I try going directly to my FreeBSD box from my > laptop when they are both inside the LAN, I get a very long delay (like > 3 minutes). Sometimes the delay is so long, the connection times out > and I never get a prompt. > > I have set the logging level up to DEBUG3 in the /etc/sshd_config file. > But, I don't see where any verbose output is going. > > This problem is on FreeBSD 4.10-RELEASE. > > TIA, > backdoc > > The /var/log/auth.log file just says: > ... fatal: Timeout before authentication for 192...... > > Here's what my laptop spits out before the long delay kicks in. > > root@laptop:/home/backdoc # ssh -vl backdoc 192.168.1.4 > OpenSSH_3.9p1 Debian-1ubuntu2, OpenSSL 0.9.7e 25 Oct 2004 > debug1: Reading configuration data /etc/ssh/ssh_config > debug1: Applying options for * > debug1: Connecting to 192.168.1.4 [192.168.1.4] port 22. > debug1: Connection established. > debug1: permanently_set_uid: 0/0 > debug1: identity file /root/.ssh/identity type -1 > debug1: identity file /root/.ssh/id_rsa type -1 > debug1: identity file /root/.ssh/id_dsa type -1 > debug1: Remote protocol version 1.99, remote software version > OpenSSH_3.5p1 FreeBSD-20030924 > debug1: match: OpenSSH_3.5p1 FreeBSD-20030924 pat OpenSSH* > debug1: Enabling compatibility mode for protocol 2.0 > debug1: Local version string SSH-2.0-OpenSSH_3.9p1 Debian-1ubuntu2 > debug1: SSH2_MSG_KEXINIT sent > debug1: SSH2_MSG_KEXINIT received > debug1: kex: server->client aes128-cbc hmac-md5 none > debug1: kex: client->server aes128-cbc hmac-md5 none > debug1: SSH2_MSG_KEX_DH_GEX_REQUEST(1024<1024<8192) sent > debug1: expecting SSH2_MSG_KEX_DH_GEX_GROUP > debug1: SSH2_MSG_KEX_DH_GEX_INIT sent > debug1: expecting SSH2_MSG_KEX_DH_GEX_REPLY > debug1: Host '192.168.1.4' is known and matches the DSA host key. > debug1: Found key in /root/.ssh/known_hosts:1 > debug1: ssh_dss_verify: signature correct > debug1: SSH2_MSG_NEWKEYS sent > debug1: expecting SSH2_MSG_NEWKEYS > debug1: SSH2_MSG_NEWKEYS received > debug1: SSH2_MSG_SERVICE_REQUEST sent > debug1: SSH2_MSG_SERVICE_ACCEPT received > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to > "freebsd-questions-unsubscribe@freebsd.org" > >