This is slow because the OpenSSH daemon uses DNS to run a reverse lookup on the client hostname to make sure it’s valid
1 2 |
sudo vi /etc/ssh/ssh_config |
Comment out the following lines
1 2 3 |
#GSSAPIAuthentication yes #GSSAPIDelegateCredentials no |
OR
add this:
1 2 |
UseDNS no |