原先 Google 後,大多是將 sshd_config 裡的 UseDNS 設為 NO 以後,

會改善連線慢的情況,但今天的狀況不同,設定完後重啟依然連線慢,

後來使用 ssh -v 的功能,帶出 debug 記錄,發現跟 gss 驗證有關

[oracle@oraclev2 ~]$ ssh -v oracle@192.168.56.101

debug1: Next authentication method: gssapi-with-mic
debug1: Unspecified GSS failure.  Minor code may provide more information
Cannot determine realm for numeric host address

debug1: Unspecified GSS failure.  Minor code may provide more information
Cannot determine realm for numeric host address

debug1: Next authentication method: publickey
debug1: Trying private key: /home/oracle/.ssh/identity
debug1: Trying private key: /home/oracle/.ssh/id_rsa
debug1: Trying private key: /home/oracle/.ssh/id_dsa
debug1: Trying private key: /home/oracle/.ssh/id_ecdsa
debug1: Next authentication method: password

設定 /etc/ssh/sshd_config 裡的 GSSAPIAuthentication 為 no 重啟即可

 

參考:
http://blog.xuite.net/misgarlic/weblogic/52945683-ssh+connect+很慢的問題

arrow
arrow
    文章標籤
    Linux SSH
    全站熱搜

    StockMemo 發表在 痞客邦 留言(0) 人氣()