vim /etc/ssh/sshd_config

按i编辑插入
找到
UseDNS去掉前面的#号 改为 no

GSSAPIAuthentication 改为 no

然后:wq 保存退出

systemctl restart sshd

重启