The solution of Ssh/mysql login slow in intranet _mysql

Source: Internet
Author: User
Tags mysql client ssh mysql login

Often the company's development environment will be arranged in the intranet, and then there will be a common server for everyone to develop, test, so often there will be SSH connection server, or local MySQL client connection server needs, I personally experienced the company often occurs ssh/ MySQL connection to the public server is very slow, because the SSH service and MySQL service by default will be at the time of the DNS reverse parsing process, and intranet is usually not equipped with DNS services, then we can only wait for these services themselves to time out, then we can allow our login to pass, The solution is also simple, just shut down the corresponding service parsing.

The first is SSH, as follows:

/etc/ssh/sshd_config

Usedns No

Gssapiauthentication No

Gssapicleanupcredentials Yes

Next is the MySQL service:

/etc/my.ini

[Mysqld]

Skip-name-resolve

Skip-grant-tables

So that's it, reboot our SSH and MySQL service, and ssh/mysql the connection again soon.

Of course, on-line machines, we still need to open 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.