FileZilla:"Too many authentication failures for ubuntu" 当我对我的 EC2 实例执行 sftp 时

FileZilla: "Too many authentication failures for ubuntu" when i do sftp to my EC2 instance

过去 6 个月我一直在使用我的 AWS EC2 实例,但现在当我使用 sftp 时,我不断收到此错误。

Error:          Server sent disconnect message
Error:          type 2 (protocol error):
Error:          "Too many authentication failures for ubuntu"
Error:          Could not connect to server

我该如何解决这个问题?

Filezilla 尝试 ~/.ssh 目录中的所有密钥,大多数 OS 上的 ssh 守护程序将在尝试 5 次后拒绝访问消息 Too many authentication failures

删除不需要的键或将不需要的键从~/.ssh中移出,并在~/.ssh

中保留不超过4个键