系統Centos7.2
解決方法:
1.編輯“/etc/ssh/sshd_config”文件,將DNS解析、GSSAPIAuthentication註釋
[root@compute ~]# vim /etc/ssh/sshd_config
UseDNS 禁用DNS解析
GSSAPIAuthentication 採用Kerberos驗證
UseDNS no GSSAPIAuthentication no
[root@compute ~]# service sshd restart
2.添加主機信息
[root@compute ~]# vim /etc/hosts
10.0.0.21 compute
3.採用"ssh -v ip地址"調試