Step 1 disable ssh gssapi authentication vi/etc/ssh/ssh_config comment out the following two lines: GSSAPIAuthenticationyesGSSAPIDelegateCredentialsno Step 2 disable ssh UseDNSvi/etc/ssh/sshd_config note: the sshd_config file of Ubuntu does not have the UseDNS parameter. As far as I know, other classes * NIX, * B
Step 1 disable gssapi authentication for ssh
Comment out the following two lines in vi/etc/ssh/ssh_config:
GSSAPIAuthentication yes
GSSAPIDelegateCredentials no
Step 2 disable ssh UseDNS
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 the UseDNS parameter, and the default values are "UseDNS yes ", it is estimated that although the Ubuntu sshd_config does not have UseDNS, it is also "UseDNS yes" by default.
Insert the following line at the end of sshd_config:
UseDNS no
Then run 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.
Solve http://www.linuxidc.com/Linux/2013-07/86879.htm with latency issues during OpenSSH Remote Login
Ubuntu 12.10 OpenSSH offline Installation Method http://www.linuxidc.com/Linux/2013-04/82814.htm
OpenSSH upgrade steps and precautions http://www.linuxidc.com/Linux/2013-04/82123.htm
OpenSSH common users cannot log on to several cases solution http://www.linuxidc.com/Linux/2012-05/59457.htm
General thread: OpenSSH key management, Part 1 RSA/DSA certified http://www.linuxidc.com/Linux/2011-08/39871.htm
RedHat install OpenSSH and configure sftp lock directory http://www.linuxidc.com/Linux/2012-12/75398.htm
For more information about Ubuntu, see Ubuntu special page http://www.linuxidc.com/topicnews.aspx? Tid = 2
This article permanently updates the link address: Http://www.linuxidc.com/Linux/2014-09/106810.htm