最新消息:以前的文章会整理补上,如果有时间就来坐坐吧。。。

SSH “Too many authentication failures”解决方法

分享发现 麦童 213浏览 0评论

Table of Contents

背景

因为本人有洁癖每隔一段时间都会重装VPS操作系统,通过SSH链接时经常会提示如下错误:

The server has disconnected with an error.  Server message reads:
A protocol error occurred. Too many authentication failures

当SSH客户端尝试使用密钥进行身份验证时,如果多次失败,可能会导致”Too many authentication failures”错误。这通常发生在SSH客户端尝试使用多个密钥进行身份验证,但服务器拒绝了所有的密钥。

解决方法

终端中执行如下命令删除ssh-agent中的所有密钥即可解决

micboy@micboydeMacBook-Pro > ssh-add -D
All identities removed.

转载请注明:麦童博客 » SSH “Too many authentication failures”解决方法

发表我的评论
取消评论

表情

Hi,您需要填写昵称和邮箱!

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址