zoukankan      html  css  js  c++  java
  • git操作:WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED! (警告:远程主机标识已更改!)

    问题背景:

      前几日,把云服务器系统由centos改成Ubuntu之后,重新搭建的git服务器环境。

    问题描述:

      从本机不能clone远程git仓库。

      

       报错如下:

    @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
    @    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 RSA key sent by the remote host is
    SHA256:puhqqLAYH9hxo9rEtbhdyoeM98JQsEPY7SKMeNmzt30.
    Please contact your system administrator.
    Add correct host key in /c/Users/Daemon/.ssh/known_hosts to get rid of this message.
    Offending RSA key in /c/Users/Daemon/.ssh/known_hosts:1
    RSA host key for 118.89.230.188 has changed and you have requested strict checking.
    Host key verification failed.

     问题解决:

      把/c/Users/Daemon/.ssh/known_hosts 文件中118.89.230.188地址的公钥删除,更换系统后,需要重新匹配远程服务器信息。

  • 相关阅读:
    [HNOI2008] [BZOJ1008] 越狱|组合数学
    (转)位运算简介及使用技巧
    AW297 赤壁之战(数据结构优化DP)
    AW280 陪审团
    AW288 休息时间
    AW281 硬币
    AW383 观光
    AW366 看牛 (欧拉回路)
    AW365 圆桌骑士
    AW363 B城
  • 原文地址:https://www.cnblogs.com/daemonFlY/p/10391351.html
Copyright © 2011-2022 走看看