Why is ssh logon to linux Server slow?

Source: Internet
Author: User

In linux, ssh 1.2.3.4 is slow to log on to linux. It takes a long time to display the entered password. The reason is that the sshd process will reverse resolve the domain name based on the ip address, resolve the ip address based on the domain name before logging on. If the ip address is slow to the corresponding domain name, the solution is to disable domain name resolution. Find the sshd configuration file and modify the configuration item "GSSAPIAuthentication ", set it to no. For details, see [html] [root @ sven ~]. # Cat/etc/ssh/sshd_config | grep GSSAPIAuthentication no # GSSAPIAuthentication yes can also be added to the/etc/hosts file "1.2.3.4 sven ", then try ssh again and you will find that the shell is logged on in seconds;

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.