[CentOS] long delay when logging in

Thu Nov 17 04:06:30 UTC 2016
Peter <peter at pajamian.dhs.org>

On 17/11/16 16:34, Digimer wrote:
> Edit /etc/ssh/sshd_config
> Set:
> UseDNS no
> GSSAPIAuthentication no
> Save, restart sshd, try again.

This will certainly stop the long timeout, but I prefer telling people
to fix their DNS.  The long timeout is indicative of a DNS issue and
turning off DNS for ssh is just masking the real problem.  I prefer to
leave DNS on for ssh as it's a good indicator for me of when I have to
fix something.