ssh连接慢解决方法

七 17th, 2009

使用kde的konsole连接局域网内服务器慢,今用ssh -v 看了下,发现是

debug1: Next authentication method: gssapi-with-mic

一直等待。原来/etc/ssh/ssh_config中GSSAPIAuthentication选项被配置成yes后,会发起一个_kerberos.<hostname>的GSSAPI认证请求,这样,ssh会一直等待至GSS认证超时失败。所以等待了很久。
解决办法,将该选项置为no
GSSAPIAuthentication no
至于GSSAPI认证具体访式,有待以后研究 :lol:
sshd配置参考http://lamp.linux.gov.cn/OpenSSH/sshd_config.html

标签:
目前还没有任何评论.
;) :| :x :twisted: :roll: :oops: :o :mrgreen: :lol: :idea: :evil: :cry: :arrow: :P :D :?: :? :) :( :!: 8O 8)

Spam Protection by WP-SpamFree