Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 29 Dec 2009 14:32:35 -0500
From:      Steve Bertrand <steve@ibctech.ca>
To:        Jonathan Chen <jonc@chen.org.nz>
Cc:        freebsd-questions@freebsd.org, n dhert <ndhert@gmail.com>
Subject:   Re: Starting sshd, ssh connections
Message-ID:  <4B3A5953.1090707@ibctech.ca>
In-Reply-To: <20091229185343.GC35428@osiris.chen.org.nz>
References:  <8021a2660912291004h2590b06atdb54ba14d5e31d5@mail.gmail.com> <20091229185343.GC35428@osiris.chen.org.nz>

next in thread | previous in thread | raw e-mail | index | archive | help
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4B3A5953.1090707>