修复 “SSH Too Many Authentication Failures”错误

问题

首次使用ssh 登录一台新服务器,不能登录,有如下提示:

ssh root@121.36.200.155
The authenticity of host '121.36.200.155 (121.36.200.155)' can't be established.
ECDSA key fingerprint is SHA256:q/G9cz9mMnHHwuJh2rBhU4MhbzlDT2aA6aRdq7N51mE.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added '121.36.200.155' (ECDSA) to the list of known hosts.

Authorized users only. All activities may be monitored and reported.
Received disconnect from 121.36.200.155 port 22:2: Too many authentication failures
Disconnected from 121.36.200.155 port 22

解决方法

原因:Since ssh server (sshd) on the remote server expects a particular identity key, the server rejects the connection and ssh client aborts with the above error.

加上-o IdentitiesOnly=yes,即ssh -o IdentitiesOnly=yes root@ip即可登录

参考

How to Fix “SSH Too Many Authentication Failures” Error

评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值