公司架了一台新主機 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
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
沒有留言:
張貼留言