The reason why ssh is slow to log on to linux server is that in linux, ssh1.2.3.4 is slow to log on to Linux. it takes a long time to display the entered password, because the sshd process will reverse resolve the domain name based on the ip address, then, you can reverse the ip address based on the domain name before logging on. if the ip address matches the domain name, it will be slow... in linux, ssh 1.2.3.4 is slow to log on to linux. it takes a long time to display the entered password. The reason is that the sshd process will reverse resolve the domain name based on the ip address, resolve the ip address based on the domain name before logging on. if the ip address is slow to the corresponding domain name, the solution is to disable domain name resolution. find the sshd configuration file and modify the configuration item "GSSAPIAuthentication ", set it to no. for details, see [html] [root @ sven ~]. # Cat/etc/ssh/sshd_config | grep GSSAPIAuthentication no # GSSAPIAuthentication yes can also be added to the/etc/hosts file "1.2.3.4 sven ", then try ssh again and you will find that the shell is logged on in seconds;
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.