SSH login takes very long time...sometimes

Lowell Gilbert freebsd-stable-local at be-well.ilk.org
Fri Dec 23 06:31:39 PST 2005


Marian Hettwer <MH at kernel32.de> writes:

> Hej there,
> 
> Kobi Shmueli wrote:
> > Try checking /etc/resolv.conf on oboe first, adding a static entry to
> > /etc/hosts of the remote ip/host should speed dns checks as well.
> > You can also run ssh in verbose mode (ssh -v oboe) or/and run sshd in debug
> > mode (sshd -d).
> >
> alternativly to check out wether it's dns related, you use set the
> Option "UseDNS no" in your sshd_config, so sshd won't try a reverse
> dns lookup.
> Give it a shoot. Usually ssh timeouts are related to DNS...

That should be a last resort; the hostname checks are there for a
reason...


More information about the freebsd-stable mailing list