Solution: authentication takes too long during ssh connection

Source: Internet
Author: User

Solution: authentication takes too long during ssh connection

I used Xshell for my work, but I found that it took about 10 seconds to wait for Xshell to connect to a remote host in the last few days. I used to connect to the remote host and checked it online, the solution is simple. You only need to change the dns authentication in the/etc/ssh/sshd_config file to no, that is, change # UseDns yes to UseDns no to OK. Restart the ssh service: sudo service sshd restart. At this time, when you reconnect to Xshell, you will find that there is almost no waiting time.

Note: UseDns is used to specify whether reverse resolution should be performed on the remote host name to check whether the host name actually corresponds to its IP address. The default value is "yes ".
For more information about the configurations of sshd_config, see: http://blog.csdn.net/zhu_xun/article/details/18304441

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.