1、vim /etc/ssh/sshd_config #打开配置文件
UseDNS no #默认是被注释的,去掉注释,把yes改为no,并重启sshd服务即可
+++++++++++++++++++++++++++++++++++++++++++++++
2、gssapi的问题
用ssh -v user@server 可以看到登录时有如下信息:
debug1: Next authentication method: gssapi-with-mic
debug1: Unspecified GSS failure. Minor code may provide more information
解决办法:
可以使用ssh -o GSSAPIAuthentication=no user@server登录
也可以修改/etc/ssh/ssh_config,设置GSSAPIAuthentication no
用ssh -v user@server 可以看到登录时有如下信息:
debug1: Next authentication method: gssapi-with-mic
debug1: Unspecified GSS failure. Minor code may provide more information
解决办法:
可以使用ssh -o GSSAPIAuthentication=no user@server登录
也可以修改/etc/ssh/ssh_config,设置GSSAPIAuthentication no
最后/init.d/sshd restart/init.d/sshd restart