vim /etc/ssh/sshd_config
按i编辑插入找到UseDNS去掉前面的#号 改为 no
UseDNS
GSSAPIAuthentication 改为 no
GSSAPIAuthentication
然后:wq 保存退出
:wq
systemctl restart sshd
重启