Linux Server SSH logon slows down as time increases
Source: Internet
Author: User
Linux Server SSH logon slows down as time goes on. For more information about Linux Enterprise applications and Linux server applications, see the following. On a Linux server, ssh logon slows down and sometimes times out. I always thought this was not a problem, but sometimes it was unacceptable to log on for a long time. I checked that the "slow ssh Login" problem is still a problem. The solution is as follows:
Edit the ssh configuration file: sshd_config
# Vi/etc/ssh/sshd_config
Check whether the UseDNS option exists in the file. If yes, modify or not, add the file. This file is installed by default, but this option is commented out. In this case, remove the comment and change the value to no:
UseDNS no
Restart the ssh service
#/Etc/init. d/sshd restart
According to the information, the reason for slow logon is that DNS reverse resolution exists in the system during logon, which is a bit like an endless loop.
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