Slow SSH Login

Source: Internet
Author: User
Slow SSH Login-Linux Enterprise Application-Linux server application information. For more information, see the following section. Today, I installed a new linux server for my company and placed it next to me. After the installation, I found a problem. It is very slow to log on via ssh using putty. I have checked the LDAP configuration and canceled the LDAP service. The problem persists, someone on the Internet said that it would be OK to remove the DNS configuration. I tested it and it was really OK, but the DNS must be used. Later, I configured the DNS, then, the domain name in the ping domain cannot be pinged. It is strange that the IP address can be pinged. I checked it carefully and the ping to another subnet in our lan won't work either, the IP address of the DNS server is in the other sub-network, so I immediately checked the IP settings, dizzy, I really set the subnet mask wrong, we use 255.255.255.255.128 as the subnet mask. I still use the default 255.255.255.255.0, Which is depressing. Restart the network service after the change,/etc/init. d/network restart: log on to the server again. The speed was very fast. Later, I checked the working principle of SSH on the Internet, when we use putty to send a login request to the server via ssh, the server will reverse query our domain name to the DNS server. If the connection fails, the connection will be stuck there for a while until the query times out, so the login is so slow.

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.