Host key verification failed 问题解决方案

Host key verification failed 错误是在ssh连接服务器的时候出现的信息,一般是由于远程linux服务器重装了系统,而导致本地存储的key文件无法与重装系统之后的key相匹配,所以在本地再次通过ssh连接远程服务器的时候,就会发生如上的报错!

Host key verification failed 错误是在ssh连接服务器的时候出现的信息,一般是由于远程linux服务器重装了系统,而导致本地存储的key文件无法与重装系统之后的key相匹配,所以在本地再次通过ssh连接远程服务器的时候,就会发生如上的报错!

Host key verification failed
Host key verification failed

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:OmlI1uT1FXmhXfZgaBOeRlL1HG1/aYCk6icBhQ6kngs.
Please contact your system administrator.
Add correct host key in /var/root/.ssh/known_hosts to get rid of this message.
Offending ECDSA key in /var/root/.ssh/known_hosts:24
ECDSA host key for 207.151.88.13 has changed and you have requested strict checking.
Host key verification failed.

上面代码中如下两句解释了问题的关键:

ECDSA host key for 207.151.88.13 has changed and you have requested strict checking.
Host key verification failed.

解决办法

在ssh终端输入如下代码即可!(ip地址替换为你自己的服务器ip地址

ssh-keygen -R 207.151.88.13

有任何观点,草凡博客都欢迎您踊跃留言讨论!

原创文章,作者:朋远方,如若转载,请注明出处:https://caovan.com/host-key-verification-failed-wentijiejuefangan/.html

Like (0)
Donate 微信扫一扫 微信扫一扫
朋远方的头像朋远方
Previous 2021年3月5日 下午4:28
Next 2021年3月21日 上午11:05

相关推荐

发表回复

Please Login to Comment