当我执行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时,我得到了以下信息:
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发布于 2014-12-15 07:26:16
通过将GSSAPIAuthentication no添加到/etc/ssh/ssh_config中来解决问题。
https://askubuntu.com/questions/558290
复制相似问题