Slow logon through intranet ssh/mysql _ MySQL

Source: Internet
Author: User
Tags reverse dns
Slow logon to sshmysql over the intranet: bitsCN.com

The development environment of a company is usually deployed on the intranet, and then there will be public servers for developers and tests. Therefore, there is often a need to connect to the server through ssh or a local mysql client, in my personal experience, companies often encounter slow ssh/mysql connection to public servers. this is because ssh and mysql services use reverse DNS resolution at login by default, the intranet is usually not equipped with DNS services, so we can only wait for these services to time out before allowing us to log on through. the solution is also very simple, you only need to disable the resolution of the corresponding service.

The first is ssh, as follows:

/Etc/ssh/sshd_config

UseDNS no

GSSAPIAuthentication no

GSSAPICleanupCredentials yes

Followed by the mysql service:

/Etc/my. ini

[Mysqld]

Skip-name-resolve

Skip-grant-tables

That's all. restart our ssh and mysql services and connect to ssh/mysql again quickly.

Of course, we still need to enable these security mechanisms for online machines.

BitsCN.com

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.