1   删除.ssh文件夹(直接搜索该文件夹)下的known_hosts(手动删除即可,不需要git)

2   在下载好的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 然后接着回车会显示一长串内容其中

还有一些..o.. o oo .oS. 之类的代码,这说明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

ok还有最后一步

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

然后你就可以正常使用git clone命令了,最后祝你好运哈哈!

转载于:https://www.cnblogs.com/xuLessReigns/p/10735115.html

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.

    输入 git clone 命令时出现Please make sure you have the correct access rights and the repository exists.错误,出 ...

  3. 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 ...

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

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

  5. 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.是公钥出问题了,要 ...

  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.”...

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

  8. 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 ...

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

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

最新文章

  1. 字符串处理stringr包在微生物生态的应用基础
  2. Nature封面:人类还在看提词器,AI的辩论能力却出现了重大进展
  3. 【Android 内存优化】Android 原生 API 图片压缩原理 ( Bitmap_compress 方法解析 | Skia 二维图形库 | libjpeg 函数库 | libpng 函数库 )
  4. Python数据结构与算法—基本概念
  5. 【CSS 伪类】顺序
  6. .NET Core 2.1 Preview 1发布:更快的构建性能
  7. hibench测试出现问题--zookeeper
  8. 动态修改attr里的多个属性
  9. 有关i++问题,和一些另外的易错点
  10. github最全计算机类电子书下载
  11. Java:计算立方体的体积和底面积
  12. jeecg框架 弹出框问题
  13. Java入门基础知识点总结(详细篇)
  14. 利用adsl拨号服务器VPS构建代理IP池
  15. PTA 7-10 字符转换 (15分)
  16. gee微端服务器系统设置,gee微端服务器推荐配置
  17. Selenium2学习(四)-- xpath定位
  18. html图片缩放作为背景,css怎么把背景图片缩小?
  19. win10删除历史壁纸记录
  20. 哈工大2020数据结构期末

热门文章

  1. 中国饲用微生态制剂行业十四五研发方向与专项应用调研报告2022年
  2. 2022年全球及中国圆机织针行业产能规模与运营前景战略分析报告
  3. 2022年全球及中国角鲨烯和角鲨烷市场需求规模与十四五竞争策略研究报告
  4. 全球及中国在线总有机碳分析仪行业竞争趋势与投资动态建议报告2022版
  5. 中国煤炭工业节能减排现状研究分析及市场前景预测报告2022-2028年版
  6. Android应用apk的程序签名详解
  7. 粤东农批项目座谈会 农业大健康·李喜贵:功能性农业差异化加工
  8. 2018 Multi-University Training Contest 10 - CSGO
  9. Altium Designer中将FPGA引脚定义导出成文件
  10. Sprint 冲刺第三阶段第6-10天