Slow logon to intranet ssh/mysql

Source: Internet
Author: User
Tags reverse dns

Solve the problem of slow login to intranet ssh/mysql. The company's development environment will be deployed on the Intranet. Then there will be a public server for everyone to develop and test on, so there will often be ssh connection to the server, or the local mysql client needs to connect to the server. Companies I have personally experienced often encounter slow connection to the public server through ssh/mysql, this is because ssh and mysql services will perform reverse DNS resolution at login by default, while the Intranet is usually not equipped with the DNS service, then we can only wait for these services to time out, then we can allow our login to pass through, and the solution is also very simple, as long as the corresponding service resolution is closed. Www.2cto.com is ssh first, as follows:/etc/ssh/sshd_config UseDNS no GSSAPIAuthentication no GSSAPICleanupCredentials yes followed by mysql service:/etc/my. ini [mysqld] skip-name-resolve skip-grant-tables. Just restart our ssh and mysql services, and the ssh/mysql connection will be fast again. Of course, for online machines, we still need to enable these security mechanisms.

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.