1、用root用户登录。
2、备份文件
cp /etc/ssh/sshd_config /etc/ssh/sshd_config.bak
3、编辑文件
vi /etc/ssh/sshd_config
输入 /GSSAPIAuthentication查找 并将值改为no
# GSSAPI options
GSSAPIAuthentication no
输入 /UseDNS查找, 并将值改为no(该项默认不启用的,要把前面的#删除掉)
#ShowPatchLevel no
UseDNS no
#PidFile /var/run/sshd.pid
最后输入!wq保存文件并退出
4、重启
systemctl restart sshd