@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@ 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 XXXXXXX key sent by the remote host is
SHA256:xxx...
Please contact your system administrator.
Add correct host key in C:\\Users\\Administrator/.ssh/known_hosts to get rid of this message.
Offending XXXXXXX key in C:\\Users\\Administrator/.ssh/known_hosts:2
Host key for [xx.xxx.xxx.xxx]:xxxxx has changed and you have requested strict checking.
Host key verification failed.
因为想升级一下 XHTTP 协议,所以需要升级一下系统,结果装完就报这个连不上了。其实解决方法非常的简单,甚至提示里已经有了。
就是在你的客户端里,按提示的路径:
C:\\Users\\Administrator/.ssh/known_hosts
打开 known_hosts 文件,很容易就可以发现写着服务器 ip 的那一条,把它删掉就可以了,命令什么的都不一定有这个好使。
因为我们的主机重装了,所以公匙变了,和客户端里的私匙对不上了,所以认证不过去。
解决方案就像上面提到的,直接把本地的私匙删了,然后重新申请一个新的即可。