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.