There is a problem with the SSH configuration, resulting in slow logon and transmission data

Source: Internet
Author: User
Tags ssh ssh server

Phenomenon: There is a user feedback in our Aliyun bought 2 servers, through the intranet transmission data and SSH Landing are very slow, suspected that our intranet communication problems, to our investigation.

Analysis process and solution: After the discovery is the user's server SSH configuration file settings caused. The Usedns in the/etc/sshd/sshd_config configuration file is set to Yes and modified to No.

Explain the next usedns, when the client attempts to log on to the SSH server, the server side is based on the client's IP address DNS PTR reverse query the client's host name, and then according to the query out of the client host name DNS forward a record query, verify that its original IP address is consistent, This is a way to prevent client spoofing, but generally we are dynamic IP does not have PTR records, open this option is a waste of time, it is better to close it.

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.