Host key verification failed.

第一次玩阿里云服务器,一开始自己玩了半天,玩的乱七八糟,然后打算重置一下好好玩。

结果重置之后连接不上了,还报了下面这个错误:

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@    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:4ib+zCAy87A3v+n8glp2QYvXLyvOSplVi1da8L0ggn8.
Please contact your system administrator.
Add correct host key in C:\\Users\\dai'er/.ssh/known_hosts to get rid of this message.
Offending ECDSA key in C:\\Users\\dai'er/.ssh/known_hosts:6
ECDSA host key for 47.96.237.42 has changed and you have requested strict checking.
Host key verification failed.

解决方案:

找到如下路径和文件:

C:\Users\dai'er\.ssh\known_hosts

在这里插入图片描述
将云服务器对应的IP所在行删掉就行了。

posted @ 2019-08-17 16:40  AlexKing007  阅读(111)  评论(0编辑  收藏  举报