Starting sshd, ssh connections

Steve Bertrand steve at ibctech.ca
Tue Dec 29 19:32:38 UTC 2009


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 at 192.168.75.8
>> or  # ssh root at 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



More information about the freebsd-questions mailing list