git clone 命令出现fatal: Could not read from remote repository.

如图所示,

致命:无法从远程存储库中读取。

请确保您拥有正确的访问权限

存储库存在。

解决方法   第一步: C:\Users\Windows用户名目录下  找到.ssh文件git clone 命令出现fatal: Could not read from remote repository.

git clone 命令出现fatal: Could not read from remote repository.

如图,删除掉known_hosts。

生成ssh公钥认证所需的公钥和私钥文件

ssh-****** -t rsa -C 

git clone 命令出现fatal: Could not read from remote repository.

打开你的.SSH文件夹,复制id_rsa.pub 里面的字符串。

第二步,登录github

 

 

git clone 命令出现fatal: Could not read from remote repository.

 

git clone 命令出现fatal: Could not read from remote repository.

好了,接下来就测试看是否成功。

打开gitbsah   输入  ssh -T [email protected]

 

git clone 命令出现fatal: Could not read from remote repository.

现在就可以正常使用git clone命令了。

相关文章:

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