RSA host key has changed 错误

秒速五厘米 2022-06-10 13:57 222阅读 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 RSA key sent by the remote host is
  8. SHA256:***.
  9. Please contact your system administrator.
  10. Add correct host key in /Users/***/.ssh/known_hosts to get rid of this message.
  11. Offending RSA key in /Users/***/.ssh/known_hosts:2
  12. RSA host key for *** has changed and you have requested strict checking.
  13. Host key verification failed.

因为在阿里云上更换了一下镜像,所以再次连接时报错,解决方案如下:

  1. ssh-keygen -R IP

把IP替换成你的真实地址即可。

发表评论

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

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

相关阅读