1,ssh -v root@ipssh
2,查看哪裏卡住了debug
通常狀況就是卡在debug1: SSH2_MSG_SERVICE_ACCEPT receivedcode
3,若是是上面卡住了ip
修改/etc/ssh/sshd_configio
1)因爲GSSAPI認證致使的,將對應行修改爲(沒有的本身添加):bug
GSSAPIAuthentication no
2)因爲DNS解析致使的,仍是修改/etc/ssh/sshd_config,在最後添加一行:co
UseDNS no