解决ssh连接linux服务器响应慢的问题

解决ssh连接linux服务器响应慢的问题

𝓓𝓸𝓷 Lv6

ssh连接linux服务器比较慢,通过修改ssh配置解决

1
2
3
4
5
6
7
8
9
10
修改sshd配置:
[root@server01 ~]# sed -i 's/^#UseDNS yes/UseDNS no/g' /etc/ssh/sshd_config

[root@server01 ~]# grep UseDNS /etc/ssh/sshd_config
UseDNS no

重启sshd服务:
[root@server01 ~]# service sshd restart

[root@server01 ~]# systemctl restart sshd.service
  • Title: 解决ssh连接linux服务器响应慢的问题
  • Author: 𝓓𝓸𝓷
  • Created at : 2024-09-08 12:28:50
  • Updated at : 2025-04-01 18:02:54
  • Link: https://www.zhangdong.me/linux-slow-ssh-connection.html
  • License: This work is licensed under CC BY-NC-SA 4.0.
评论