# 设置关闭SSH DNS (SSH连接慢)
vim /etc/ssh/sshd_config
# 找到以下配置
#UseDNS=yes
# 改为
UseDNS=no
# 保存
# 重启sshd
systemctl restart sshd
# 设置关闭SSH DNS (SSH连接慢)
vim /etc/ssh/sshd_config
# 找到以下配置
#UseDNS=yes
# 改为
UseDNS=no
# 保存
# 重启sshd
systemctl restart sshd