管理员用户:vim /etc/ssh/sshd_config
普通用户:sudo vim /etc/ssh/sshd_config
我的是在115行 修改为:UseDNS no(注意修改完后,取消前边的注释)
保存退出(别说你不会)
修改完后重启服务
systemctl restart sshd