系統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位址"調試