git问题Please make sure you have the correct access rights and the repository exists.

git clone时候出现如下问题:
git问题Please make sure you have the correct access rights and the repository exists._第1张图片
解决办法:

$ ssh-keygen -t rsa -C "git账号" //这里""中为git账号 
Generating public/private rsa key pair.
Enter file in which to save the key (/c/Users/Administrator/.ssh/id_rsa)://回车
Enter passphrase (empty for no passphrase)://回车
Enter same passphrase again://回车
Your identification has been saved in /c/Users/Administrator/.ssh/id_rsa.
Your public key has been saved in /c/Users/Administrator/.ssh/id_rsa.pub.  //这个路径下面会用到
The key fingerprint is:
SHA256:Mz5SX+yTys10ZIPwY2maaXim2A83w2ER7TLTXXcS8io gitzhanghao
The key's randomart image is:
+---[RSA 2048]----+
|          ... .. |
|           ..o. +|
|          oo ..oo|
|          +=o+.  |
|        S E+@ +  |
|       o B @ = . |
|      . = & = .  |
|       + X B o   |
|      . o.+ o    |
+----[SHA256]-----+

Administrator@CY-20180226JENW MINGW64 /e/test1 (master)
$ cat /c/Users/Administrator/.ssh/id_rsa.pub  //这个路径是上面
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCj2MaqwaO1TFxTnFUDceI/BIxP/PvQ6MuNOHr3J2NWm9CtnTMDqMwx84ty1flHubLrQE73IDChPV40wkU9MpUE9O7ehjlOFsi8qgmM4H/rVYEU8JPo+i2Nel66jvllFP8j3OIGPwdO0GVJPefDz4HiO/s/Xk/h57unl0cXm9SsgPH1OTBvg5POO4bDScDG5VO8yrIhJh3SOHiGeYihn7FScItfg9WdKqLjGHqtdbl57h32qsm8sp2eniXNLr9NLeI4lhWRCIsDkf434Qsuqx9Wv0XUgQk71gAj3y6Yg5gqlA7nfZgVZABps+jgG2vl7Wh7bkzLPI42T1zgYSvUl4ZH gitzhanghao

最终将下面一大串增加 SSH 秘钥 添加进去,然后重新git clone 就可以了

ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCj2MaqwaO1TFxTnFUDceI/BIxP/PvQ6MuNOHr3J2NWm9CtnTMDqMwx84ty1flHubLrQE73IDChPV40wkU9MpUE9O7ehjlOFsi8qgmM4H/rVYEU8JPo+i2Nel66jvllFP8j3OIGPwdO0GVJPefDz4HiO/s/Xk/h57unl0cXm9SsgPH1OTBvg5POO4bDScDG5VO8yrIhJh3SOHiGeYihn7FScItfg9WdKqLjGHqtdbl57h32qsm8sp2eniXNLr9NLeI4lhWRCIsDkf434Qsuqx9Wv0XUgQk71gAj3y6Yg5gqlA7nfZgVZABps+jgG2vl7Wh7bkzLPI42T1zgYSvUl4ZH gitzhanghao

你可能感兴趣的:(git问题Please make sure you have the correct access rights and the repository exists.)