centos7登录超时_ssh – 使用CentOS7登录时延迟很长时间

我有一个CentOS 7系统,当我用putty或ssh登录时,在我收到密码提示之前有很长的延迟.我跑了ssh -v,我发现它达到了这个目的:

debug1: ssh_ecdsa_verify: signature correct

debug1: SSH2_MSG_NEWKEYS sent

debug1: expecting SSH2_MSG_NEWKEYS

debug1: SSH2_MSG_NEWKEYS received

debug1: SSH2_MSG_SERVICE_REQUEST sent

debug1: SSH2_MSG_SERVICE_ACCEPT received

然后它坐在那里1-2分钟,然后这个输出爆炸:

debug1: Authentications that can continue:

publickey,gssapi-keyex,gssapi-with-mic,password

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

No Kerberos credentials available

debug1: Unspecified GSS failure. Minor code may provide more information

No Kerberos credentials available

debug1: Unspecified GSS failure. Minor code may provide more information

debug1: Unspecified GSS failure. Minor code may provide more information

No Kerberos credentials available

debug1: Next authentication method: publickey

debug1: Trying private key: /home/motor/.ssh/id_rsa

debug1: Trying private key: /home/motor/.ssh/id_dsa

debug1: Trying private key: /home/motor/.ssh/id_ecdsa

debug1: Trying private key: /home/motor/.ssh/id_ed25519

debug1: Next authentication method: password

然后出现密码提示.无论哪个用户登录,都会发生这种情况.它只发生在1系统上.我有5个其他人没有延迟.

日志中没有磁盘或内存或任何其他错误.

是什么导致它像这样延迟?

更新:

我尝试将GSSAPIAuthentication设置为no,但这并没有解决问题.

我再次运行ssh,这次使用-vvv.此输出出来然后挂起:

debug1: SSH2_MSG_SERVICE_ACCEPT received

debug2: key: /home/motor/.ssh/id_rsa ((nil)),

debug2: key: /home/motor/.ssh/id_dsa ((nil)),

debug2: key: /home/motor/.ssh/id_ecdsa ((nil)),

debug2: key: /home/motor/.ssh/id_ed25519 ((nil)),

1-2分钟后出现了:

debug1: Authentications that can continue: publickey,password

debug3: start over, passed a different list publickey,password

debug3: preferred gssapi-keyex,gssapi-with-mic,publickey,keyboard-interactive,password

debug3: authmethod_lookup publickey

debug3: remaining preferred: keyboard-interactive,password

debug3: authmethod_is_enabled publickey

debug1: Next authentication method: publickey

debug1: Trying private key: /home/motor/.ssh/id_rsa

debug3: no such identity: /home/motor/.ssh/id_rsa: No such file or directory

debug1: Trying private key: /home/motor/.ssh/id_dsa

debug3: no such identity: /home/motor/.ssh/id_dsa: No such file or directory

debug1: Trying private key: /home/motor/.ssh/id_ecdsa

debug3: no such identity: /home/motor/.ssh/id_ecdsa: No such file or directory

debug1: Trying private key: /home/motor/.ssh/id_ed25519

debug3: no such identity: /home/motor/.ssh/id_ed25519: No such file or directory

debug2: we did not send a packet, disable method

debug3: authmethod_lookup password

debug3: remaining preferred: ,password

debug3: authmethod_is_enabled password

debug1: Next authentication method: password

然后是密码提示.

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值