美文网首页
ssh远程连接Host key verification fai

ssh远程连接Host key verification fai

作者: 一点温柔 | 来源:发表于2020-05-06 11:32 被阅读0次

    使用ssh指令远程阿里云服务器时提示:

    @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
    @    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:rIaSB+z1/OXz2LnWPrkjC5IOW+qP9hAqd1ui4ky0jTc.
    Please contact your system administrator.
    Add correct host key in /Users/panying/.ssh/known_hosts to get rid of this message.
    Offending ECDSA key in /Users/panying/.ssh/known_hosts:6
    ECDSA host key for 239.329.31.248 has changed and you have requested strict checking.
    Host key verification failed.
    

    百度查看相似问题:
    https://blog.csdn.net/zkpython/article/details/99644386

    解决方案:

    使用指令清除你当前机器里关于你的远程服务器的缓存和公钥信息
     ssh-keygen -R 空格 +【ip地址】,如:
     ssh-keygen -R 239.329.31.248
    

    相关文章

      网友评论

          本文标题:ssh远程连接Host key verification fai

          本文链接:https://www.haomeiwen.com/subject/kwvightx.html