Linux over the intranet using SSH is slow

Source: Internet
Author: User
Tags reverse dns

The common solution to this problem on the internet is (mainly to modify the configuration file/etc/ssh/sshd_config ):

 

 

My system is centos 5.3, SSH connection is very slow, it is Intranet, It is very slow and unbearable, basically it takes nearly one minute to prompt for a password.

Basically, the solution is:
1. Disable reverse DNS resolution.

Usedns No

2. By default, the system has a record that ignores previously logged-on hosts. Opening this record will basically resolve the issue of slow logon.

IgnoreRhosts Yes

Restart the SSH service

Service sshd reload

3. Modify the value of "gssapiauthentication" to "no" (add this configuration option if not, and release it if commented out );
In fact, you can run "ssh-V host" on your own for debugging. The debug information shows where the connection is delayed. My test is in "debug1: unspecified GSS failure. minor code may provide more information "this pause for a while, so I feel that modifying the value of" gssapiauthentication "should be effective, but it turns out that if you do not change the above items, this change still does not work in my system!

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.