[CentOS] long delay when logging in

Digimer lists at alteeve.ca
Thu Nov 17 05:32:19 UTC 2016


On 16/11/16 11:06 PM, Peter wrote:
> 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.
> 
> 
> Peter

It can also happen if the target has lost its internet connection, is
air-gapped or otherwise legitimately offline. Your point is valid,
though, if the Internet should be up.

-- 
Digimer
Papers and Projects: https://alteeve.ca/w/
What if the cure for cancer is trapped in the mind of a person without
access to education?



More information about the CentOS mailing list