2013年12月3日 星期二

[Linux] ssh connect 很慢的問題

瀏覽數


來源: http://blog.xuite.net/misgarlic/weblogic/52945683-ssh+connect+%E5%BE%88%E6%85%A2%E7%9A%84%E5%95%8F%E9%A1%8C


公司架了一台新主機 Centos 6.4_x86_64 ,用自己的電腦(ubuntu 12.04)使用ssh登錄新主機時,速度很慢,會停頓好幾秒,才會順利登入。
ssh -v 看一下到底是卡在那兒, 在 ubuntu 看到下面結果:



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

症狀好像是 GSS 和 kerberos 要設定對, 這種 authentication 才會正常運作。

解決方法:
sudo vi /etc/ssh/ssh_config
找到以下的東東, 把 yes 改成 no 就可以了
GSSAPIAuthentication no

沒有留言: