输入 git clone 命令时出现Please make sure you have the correct access rights and the repository exists.错误,出现改问题的原因是git服务器没有存储本地ssh密钥。

解决步骤:

1. 删除 .ssh 文件夹【C:\Users\(本地用户名)\.ssh】 中的 known_hosts(直接删除即可)

2. 在下载好的Git中的bin目录下(一般是 C:\Program Files\Git\bin)打开bash.exe输入命令ssh-keygen -t rsa -C "username" (注:username为你git上的用户名),如果执行成功。返回:

Generating public/private rsa key pair.
       Enter file in which to save the key (/Users/username/.ssh/id_rsa): //这里的username是电脑上的用户名,这个地址也是文件的存储地址,然后按回车,

如果以前有存储地址会返回/Users/your username/.ssh/id_rsa already exists.Overwrite (y/n)?直接输入y回车。

如果以前没有储存地址就会出现Enter passphrase(empty for no passphrase);也直接回车,

两种情况回车后都会出现 Enter same passphrase again 然后接着回车会显示

The key's randomart image is:
+---[RSA 2048]----+
|    .          . |
| . = .       .  o|
|o o * .     . ...|
|E oo o   .   o.. |
| B .  o S . ...  |
|. o    o .o..    |
| .       o**.    |
|        .B=+%.   |
|         +*BoBo  |
+----[SHA256]-----+,这说明SSH key就已经生成了。文件目录就是:username/.ssh/id_rsa.pub.

3. 然后找到系统自动在.ssh文件夹下生成两个文件,id_rsa和id_rsa.pub,用记事本打开id_rsa.pub将全部的内容复制。

4. 打开https://github.com/,登陆账户,进入设置(Settings)找到

5. 然后将你复制的内容粘贴到key中

再点击Add SSH Key

6. 仍然在bash.exe中输入ssh -T git@github.com然后会跳出一堆内容你只需输入yes回车就完事了,然后他会提示你成功了。

大功告成,再次输入 git clone 就成功了

git clone 时候出现Please make sure you have the correct access rights and the repository exists.相关推荐

  1. 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.问题已解决. 参考文 ...

  2. Git clone时出现Please make sure you have the correct access rights and the repository exists.问题已解决。...

    1   删除.ssh文件夹(直接搜索该文件夹)下的known_hosts(手动删除即可,不需要git) 2   在下载好的Git中的bin目录下打开bash.exe输入命令ssh-keygen -t ...

  3. git 报错:Please make sure you have the correct access rights and the repository exists

    提示:Warning: Permanently added 'gitee.com,120.55.226.24' (ECDSA) to the list of known hosts.是公钥出问题了,要 ...

  4. Git提交时提示“Please make sure you have the correct access rights and the repository exists.”的解决方法

    1.首先打开Git Bash设置名字和邮箱: git config --global user.name "你的名字" git config --global user.email ...

  5. git遇到的问题之“Please make sure you have the correct access rights and the repository exists.”...

    对于git的提交一直很小心翼翼,感觉一不小心就会踩到莫名的坑. 这不, 某天commit 就遇到了On branch master nothing to commit (working directo ...

  6. (转)git遇到的问题之“Please make sure you have the correct access rights and the repository exists.”...

    对于git的提交一直很小心翼翼,感觉一不小心就会踩到莫名的坑. 这不, 某天commit 就遇到了On branch master nothing to commit (working directo ...

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

    当遇到如标题所示问题,打开终端 MBP:baiyunshen_rn lianyu02$ git pull git@gitlab.intebox.com: Permission denied (publ ...

  8. 用Git在阿里云下克隆时出现“Please make sure you have the correct access rights and the repository exists”错误

    一.报错的界面显示 二.可能的问题 1.你的ssh key有问题,需要重新生成配置 2.你没有在阿里云中配置你新生成的秘钥 三.解决方法 1.针对ssh key错误的解决方法 (1)搜索.ssh文件, ...

  9. git由于网络原因导致 please make sure you have the correct access rights and the repository exists

    之前遇到权限总是去重新生成sshkey,然后重新配置,懵逼的是:用着用着突然就有问题了,然后坐等,等会就好了,有毒啊,我啥都没动 经过一个多月的,实际操作,发现仅仅在公司的网络环境会出现这种情况,在家 ...

最新文章

  1. linux学习--shell重定向
  2. ios游戏开发 Sprite Kit教程:初学者 2
  3. 先学python还是先学数据库_跟着销售学python8-微信平台初次见识数据库(6)
  4. 前端面试题node.js汇总
  5. python cmd命令 循环传参数_将参数从cmd传递给python脚本
  6. [转]Java游戏引擎
  7. RHEL7/CentOS7在线和离线安装GitLab配置使用实践
  8. make though multi core
  9. Linux fread函数例程,21.2.9 文件读写实例--实现cp命令
  10. C# sqlDataReader区别Dataset
  11. java的重载 和重写
  12. gps天线拆解图片_威旺M20如何拆解中控导航及找出gps天线
  13. stm32 带通滤波器_带通滤波器详解_带通滤波器工作原理_带通滤波器原理图
  14. 汇编语言教程 -- 开始
  15. 转载-公历转换农历VB示例
  16. Vue3源码-Proxy
  17. 聆听音乐-推荐好听的歌曲
  18. Git :error: You have not concluded your merge (MERGE_HEAD exists)
  19. 详解Unity中的粒子系统Particle System (十)
  20. Dell台式机安装ubuntu系统

热门文章

  1. Redis的数据结构之字符串
  2. 3.CM3内核架构-寄存器
  3. 【bzoj3744】Gty的妹子序列 分块+树状数组+主席树
  4. NSDate 类的总结,全面基础
  5. ArcGIS Engine 编辑- ITask
  6. android Sqlite小记
  7. 一位软件工程师的7年总结(转)
  8. 看新闻的时间用的太多了
  9. C++ 控制结构和函数(二) —— 函数I(Functions I)
  10. 从零开始搭建自己的VueJS2.0+ElementUI单页面网站(一、环境搭建)