修改sshd.conf配置文件,大约在81行左右的地方,把GSSAPIAuthentication yes 这行给注释掉,并在相同的地方找到 #GSSAPIAuthentication no,把前面的#号去掉。再次找到 #UseDNS yes 把前面的#去掉,并改为UseDNS no,然后重启动sshd服务即可。
    直接命令修改:
    [root@nfs01 ~]# sed -i -e 's@GSSAPIAuthentication yes@#GSSAPIAuthentication yes@g' -e 's@#GSSAPIAuthentication no@GSSAPIAuthentication no@g' -e 's@#UseDNS yes@UseDNS no@g' /etc/ssh/sshd_config