当前位置:   article > 正文

git clone时The authenticity of host ‘xxx‘ can‘t be established._this key is not known by any other names

this key is not known by any other names

clone时出现如下:

  1. The authenticity of host 'gitee.com (212.64.62.183)' can't be established.
  2. ED25519 key fingerprint is SHA256:+ULzij2u99B9eWYFTw1Q4E...........
  3. This key is not known by any other names
  4. Are you sure you want to continue connecting (yes/no/[fingerprint])?

如果仅一次输入yes也无妨,关键是每次git操作都得输入。是可忍孰不可忍~~

找了找发现.ssh文件夹(公钥文件所在处)下只有两个文件,未生成known_hosts文件

  1. #需要每次输入时文件
  2. id_rsa id_rsa.pub
  3. #正常文件
  4. id_rsa id_rsa.pub known_hosts

于是rm -rf 掉重新生成

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/小小林熬夜学编程/article/detail/651476
推荐阅读
相关标签