How to Improve the SSH login authentication speed of Ubuntu

Source: Internet
Author: User
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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.