美文网首页
git---如何解决The authenticity of ho

git---如何解决The authenticity of ho

作者: 月泠 | 来源:发表于2018-01-26 14:16 被阅读0次

    新生成密钥的时候,git clone或者push的时候,可能会报这样的错误:

    ```

    The authenticity of host 'gitee.com (xxx.xxx.xxx.xxx)' can't be established.

    ECDSA key fingerprint is SHA256:xxxxxxxxxxxxxxxxxxxxxxxx.

    ```

    Google之后明白,文件夹内少了一个known_hosts文件,本来密钥文件应该是三个,现在只有两个,便报了这样的错误,此时输入yes回车之后,生成了缺少了的known_hosts文件,便可解决这个问题:

    ```

    Are you sure you want to continue connecting (yes/no)? //输入yes,回车

    Warning: Permanently added 'gitee.com,xxx.xxx.xxx.xxx' (ECDSA) to the list of known hosts.

    ssh_packet_read: Connection closed

    ```

    相关文章

      网友评论

          本文标题:git---如何解决The authenticity of ho

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