首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >SSH很慢连接

SSH很慢连接
EN

Ask Ubuntu用户
提问于 2014-12-09 05:42:31
回答 1查看 5.5K关注 0票数 4

当我执行ssh root@ip_adress时,经过7-8秒的等待,我会收到密码请求。当我用钥匙做的时候也会发生。

我确信这不是服务器端的问题(Centos或Debian立即连接到同一台服务器)。这就是我用来解决问题的方法:

删除了/etc/amam.d/ pam_motd.so»和/etc/pam.d/sshd中的可选会话,UseDNS中没有/etc/pam.d/sshd,而且它没有工作。

*对不起我的英语

当我启动/usr/sbin/sshd -d -d -d,然后ssh -v host时,我得到了以下信息:

代码语言:javascript
复制
debug1: No valid Key exchange context   debug1: Next authentication method: gssapi-with-mic 
**WAIT 3-4 Sec**
debug1: Unspecified GSS failure. Minor code may provide more       information No Kerberos credentials available
**WAIT 2-3 Sec**      
debug1: Unspecified GSS failure. Minor code may provide more       information No Kerberos credentials available W debug1: Unspecified  GSS failure. Minor code may provide more information 
**WAIT 2-3 Sec**   
debug1: Unspecified GSS failure. Minor code may provide more       information No Kerberos credentials available 
**WAIT 2-3 Sec**     
debug1: Next authentication method: publickey 
debug1: Offering RSA       public key: /root/.ssh/id_rsa debug1: Authentications that can       continue: publickey,gssapi-keyex,gssapi-with-mic,password 
debug1:       Trying private key: /root/.ssh/id_dsa debug1: Trying private key:       /root/.ssh/id_ecdsa debug1: Trying private key: /root/.ssh/id_ed25519
EN

回答 1

Ask Ubuntu用户

发布于 2014-12-15 07:26:16

通过将GSSAPIAuthentication no添加到/etc/ssh/ssh_config中来解决问题。

票数 7
EN
页面原文内容由Ask Ubuntu提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://askubuntu.com/questions/558290

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档