Linux SysAdmin Notes
SSH Login Slow -- Removing Delay
Problem : When I’m trying to log into the remote server via SSH, after I enter the UserName, it takes a lot of time before it displays the Password prompt. How to solve this problem?
Solution : Basically, a long delay during authentication process is caused by "GSS API Authentication method" or/and by "UseDNS" option. The solution is to disable the
Edit SSH Server configuration file :
Set the UseDNS to "no" as shown below :
Set the GSSAPIAuthentication to "no" :
Restart the OpenSSH server to apply changes
For Fedora/Centos/RHEL etc. :
For Debian/Ubuntu/LinuxMint etc. :
Now you could connect to your Server with SSH quick as usual.