每次我ssh登录服务器时,总是很慢。正如对我以前的帖子的回复所说:“遍历200行文件应该花费毫秒左右的时间,所以我怀疑就是这样。”
我尝试过ssh -vvv time@server,输出已上传到这里。我发现在进行输出中的这三行时,它特别慢:
debug1: Next authentication method: gssapi-with-mic
debug1: Unspecified GSS failure. Minor code may provide more information
Credentials cache file '/tmp/krb5cc_1000' not found
debug1: Unspecified GSS failure. Minor code may provide more information
Credentials cache file '/tmp/krb5cc_1000' not found
我想知道为什么以及如何改变它?谢谢并恭祝安康!
更新:
Ignacio的答复建议我“在您的配置中禁用所有GSS / Kerberos身份验证方法”。
因此,在中/etc/ssh/ssh_config,我是否必须确保以“ GSS”开头的所有选项的后面都是“ no”:GSSAPIAuthentication,GSSAPIDelegateCredentials,GSSAPIKeyExchange,GSSAPITrustDNS,GSSAPIAuthentication和GSSAPIDelegateCredentials?
那么我需要在后面加上“ no”的“ Kerberos”身份验证方法的选项是什么?
PS:以下是我的本地内容,/etc/ssh/ssh_config未添加注释的选项:
Host *
SendEnv LANG LC_*
HashKnownHosts yes
GSSAPIAuthentication yes
GSSAPIDelegateCredentials no
GSSAPIAuthentication yes和起作用 GSSAPIDelegateCredentials no?