FileZilla:当我对我的EC2实例执行sftp时,"ubuntu的身份验证失败太多"

Kir*_*rna 2 sftp amazon-ec2 amazon-web-services

我过去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
Run Code Online (Sandbox Code Playgroud)

我怎么能解决这个问题?

hel*_*loV 7

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

删除不需要的键或移动不需要的键,~/.ssh并保持不超过4个键~/.ssh

  • 我的问题是 SSH 代理没有添加我的密钥。运行`ssh-add ~/.ssh/specific_id_rsa` 为我解决了这个问题。 (2认同)