解决方法

第一步:在文件目录下 C:\Users\Administrator\.ssh 找到 .ssh文件

第二步:删除 .ssh 下的known_hosts 文件

第三步:生成ssh公钥认证所需的公钥和私钥文件 

  鼠标右键选择git bash here 然后输入ssh-keygen -t rsa -C “公钥标题key”   列: ssh-keygen -t rsa -C “xxxx@xxx.com”

git clone 拉取giteem.com的代码报 fatal: Could not read from remote repository

 

第四步:打开 .ssh 文件 ,复制id_rsa.pub 里面的字符串

第五步:打开gitee,在设置里面找到,如图所示

git clone 拉取giteem.com的代码报 fatal: Could not read from remote repository

 

     把复制的字符串粘贴在公钥里面去

---------------------------------------------------------------------------------------------------

此时如果git clone 拉取报  Host key verification failed. 如图所示

git clone 拉取giteem.com的代码报 fatal: Could not read from remote repository

 

 注意:此处需要输入yes

git clone 拉取giteem.com的代码报 fatal: Could not read from remote repository

 

 完成之后在git clone ‘地址’,就成功了

相关文章:

  • 2022-12-23
  • 2021-07-06
  • 2022-12-23
  • 2021-10-05
  • 2022-12-23
  • 2021-08-24
猜你喜欢
  • 2022-12-23
  • 2021-12-05
  • 2021-04-27
  • 2022-12-23
  • 2021-10-25
  • 2021-12-27
相关资源
相似解决方案