Slow ssh logon in linux: Slow ssh logon in linux can be solved by modifying the configuration on the remote host. Friends who often use ubuntu can get used to the fact that it takes more than 10 seconds or even 20 seconds to log on to ubuntu through ssh, maybe you are used to this fact, but in fact, this long wait time can be completely avoided. How can this problem be avoided, take a look at the following steps to disable ssh gssapi authentication vi/etc/ssh/ssh_config comment out the following two lines of GSSAPIAuthentication disable no step 2 disable ssh UseDNS www.2cto.com vi/etc/ssh/sshd_config note: the sshd_config file of ubuntu does not have the UseDNS parameter. As far as I know, the sshd_config of * NIX and * BSD operating systems all have UseDNS parameters, and the default values are "UseDNS yes ", it is estimated that, although the ubuntu sshd_config does not have UseDNS, it The default value is "UseDNS yes". Therefore, insert the following line UseDNS no at the end of sshd_config and execute the command "/etc/init. d/ssh restart ", restart the ssh service, and the configuration takes effect after testing. After using this method, the ubuntu authentication time is greatly shortened, in the past, the login authentication generally took about 15 seconds over 10 seconds. In some cases, it even took about 20 seconds to 30 seconds, the login authentication time for ubuntu will be shortened to less than 3 seconds. This article is from the fat shark network.