ssh登录失败:Host key verification failed

心已赠人 2021-09-13 23:46 378阅读 0赞

问题出现:阿里云服务器意外挂掉,重装系统之后,我本地远程出现如下错误:

  1. @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
  2. @WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED!@
  3. @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
  4. IT IS POSSIBLE THAT SOMEONE IS DOING SOMETHING NASTY!
  5. Someone could be eavesdropping on you right now (man-in-the-middle attack)!
  6. It is also possible that a host key has just been changed.
  7. The fingerprint for the ECDSA key sent by the remote host is
  8. 9d:xx:34:xx:5c:xx:49:xx:b4:xx:17:xx:07:xx:df:xx.
  9. Please contact your system administrator.
  10. Add correct host key in /home/xx/.ssh/known_hosts to get rid of this message.
  11. Offending ECDSA key in /home/xx/.ssh/known_hosts:1
  12. remove with: ssh-keygen -f "/home/xxxxx/.ssh/known_hosts" -R 192.168.xxx.xxxx
  13. ECDSA host key for 192.168.xx.xx has changed and you have requested strict checking.
  14. Host key verification failed

运行如下命令即可解决:

  1. ssh-keygen -f "/home/xxxxx/.ssh/known_hosts" -R 192.168.xxx.xxxx

发表评论

表情:
评论列表 (有 0 条评论,378人围观)

还没有评论,来说两句吧...

相关阅读