美文网首页
重置服务器Host key verification faile

重置服务器Host key verification faile

作者: HAKA | 来源:发表于2019-12-22 10:49 被阅读0次

连接服务器报错

ssh root@116.***.***.70
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@        
@@@@@@@@@@@
@    WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED!     @
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@    @@@@@@@@@@@
IT IS POSSIBLE THAT SOMEONE IS DOING SOMETHING NASTY!
Someone could be eavesdropping on you right now (man-in-the-middle attack)!
It is also possible that a host key has just been changed.
The fingerprint for the ECDSA key sent by the remote host is
SHA256:OWP9xGMWNIO8kcFliXMyrvxm0ZZJlvysSmEBTY5z0RU.
Please contact your system administrator.
Add correct host key in /Users/haka/.ssh/known_hosts to get rid of this message.
Offending ECDSA key in /Users/haka/.ssh/known_hosts:3
ECDSA host key for 116.***.***.70 has changed and you have requested strict checking.
Host key verification failed.

执行下面这个命令

ssh-keygen -R 116.***.***.70
# Host 116.***.***.70 found: line 3
/Users/haka/.ssh/known_hosts updated.
Original contents retained as /Users/haka/.ssh/known_hosts.old

然后再次连接

ssh root@116.***.***.70    
The authenticity of host '116.***.***.70 (116.***.***.70)' can't be established.
ECDSA key fingerprint is SHA256:OWP9x*********************0RU.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added '116.***.***.70' (ECDSA) to the list of known hosts.
root@116.***.***.70's password: 
Last failed login: Sun Dec 22 10:40:43 CST 2019 from 116.***.***.70 on ssh:notty
There were 95 failed login attempts since the last successful login.
Welcome to  KUAIYUN Vps!

相关文章

网友评论

      本文标题:重置服务器Host key verification faile

      本文链接:https://www.haomeiwen.com/subject/bmqonctx.html