git clone的时候遇到“Please make sure you have the correct access rights and the repository exists”

1.搜索.ssh文件,删除该文件下的known_hosts文件

git clone的时候遇到“Please make sure you have the correct access rights and the repository exists”

2.运行Git Bash,输入命令ssh-****** -t rsa -C "username",然后一路回车

git clone的时候遇到“Please make sure you have the correct access rights and the repository exists”

git clone的时候遇到“Please make sure you have the correct access rights and the repository exists”

3.在.ssh文件夹里找到 id_rsa.pub文件,打开,全部复制,然后登录 https://github.com/,找到settings,配置

SSH keys

git clone的时候遇到“Please make sure you have the correct access rights and the repository exists”

git clone的时候遇到“Please make sure you have the correct access rights and the repository exists”

 将之前复制的id_rsa.pub文件里的所有内容黏贴在下面

git clone的时候遇到“Please make sure you have the correct access rights and the repository exists”

 

 git clone的时候遇到“Please make sure you have the correct access rights and the repository exists”

 4.最后运行Git Bash,输入命令ssh -T [email protected]

git clone的时候遇到“Please make sure you have the correct access rights and the repository exists”

最后就可以正常使用了。

本文转自:https://www.cnblogs.com/chenshy/p/9405680.html