SSH login takes very long time...sometimes

Marian Hettwer MH at kernel32.de
Fri Dec 23 05:54:08 PST 2005


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...

HTH,
Marian


More information about the freebsd-current mailing list