From owner-freebsd-questions@FreeBSD.ORG  Tue Dec 29 19:32:38 2009
Return-Path: <owner-freebsd-questions@FreeBSD.ORG>
Delivered-To: freebsd-questions@freebsd.org
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id C01C4106566C
	for <freebsd-questions@freebsd.org>;
	Tue, 29 Dec 2009 19:32:38 +0000 (UTC)
	(envelope-from steve@ibctech.ca)
Received: from smtp.ibctech.ca (v6.ibctech.ca [IPv6:2607:f118::b6])
	by mx1.freebsd.org (Postfix) with SMTP id 5D07E8FC1C
	for <freebsd-questions@freebsd.org>;
	Tue, 29 Dec 2009 19:32:27 +0000 (UTC)
Received: (qmail 67312 invoked by uid 89); 29 Dec 2009 19:31:33 -0000
Received: from unknown (HELO ?IPv6:2607:f118::5?)
	(steve@ibctech.ca@2607:f118::5)
	by 2607:f118::b6 with ESMTPA; 29 Dec 2009 19:31:33 -0000
Message-ID: <4B3A5953.1090707@ibctech.ca>
Date: Tue, 29 Dec 2009 14:32:35 -0500
From: Steve Bertrand <steve@ibctech.ca>
User-Agent: Thunderbird 2.0.0.17 (Windows/20080914)
MIME-Version: 1.0
To: Jonathan Chen <jonc@chen.org.nz>
References: <8021a2660912291004h2590b06atdb54ba14d5e31d5@mail.gmail.com>
	<20091229185343.GC35428@osiris.chen.org.nz>
In-Reply-To: <20091229185343.GC35428@osiris.chen.org.nz>
X-Enigmail-Version: 0.96.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Cc: freebsd-questions@freebsd.org, n dhert <ndhert@gmail.com>
Subject: Re: Starting sshd, ssh connections
X-BeenThere: freebsd-questions@freebsd.org
X-Mailman-Version: 2.1.5
Precedence: list
List-Id: User questions <freebsd-questions.freebsd.org>
List-Unsubscribe: <http://lists.freebsd.org/mailman/listinfo/freebsd-questions>, 
	<mailto:freebsd-questions-request@freebsd.org?subject=unsubscribe>
List-Archive: <http://lists.freebsd.org/pipermail/freebsd-questions>
List-Post: <mailto:freebsd-questions@freebsd.org>
List-Help: <mailto:freebsd-questions-request@freebsd.org?subject=help>
List-Subscribe: <http://lists.freebsd.org/mailman/listinfo/freebsd-questions>, 
	<mailto:freebsd-questions-request@freebsd.org?subject=subscribe>
X-List-Received-Date: Tue, 29 Dec 2009 19:32:38 -0000

Jonathan Chen wrote:
> On Tue, Dec 29, 2009 at 07:04:24PM +0100, n dhert wrote:
>> On a newly installed FreeBSD7.2, when booting it takes a long time to get
>> past "Starting sshd.".
>> I'm using the PC only in a private network. The IP of the PC is 192.168.75.8
>> # ssh root@192.168.75.8
>> or  # ssh root@127.0.0.1
>> take both 15 seconds to display
>> Password: ...
>> At setup, I did specify a hostname, a domainname, a default_router
>> (192.168.75.14) and
>> DNS server 192.168.254.100 (in the future to be replace by non-private IPs),
>>
>> but since I am testing only in a private network and only with IP adresses
>> (no hostnames)
>> these are not used.
>> So what is causing that delay at Start of sshd and use of ssh?
> 
> Reverse DNS lookup. Make sure you have PTR entries for all IPs in use.

Or, in the case of an internal-only IP scheme, where configuring rDNS
entries is not possible/not feasible, you can disable DNS lookups in the
/etc/ssh/sshd_config file by uncommenting and setting:

UseDNS no

Restart the sshd daemon for the change to take effect.

Steve