一、分析原因

github设置免ssh密码登录--完美解决Please make sure you have the correct access rights and the repository exists._linux

首先出现这个问题是因为,你的github上没有设置免密码登录,要先设置用户和邮箱再重新生成ssh公私钥后就可以使用git了。

二、准备工作

github设置免ssh密码登录--完美解决Please make sure you have the correct access rights and the repository exists._用户名_02

三、详细操作

  • 打开git窗口(在想要拉去代码的文件夹下右键打开)
    github设置免ssh密码登录--完美解决Please make sure you have the correct access rights and the repository exists._ssh_03

注:这里的用户名密码和github上的不用保持一致的.

  • 在本地生成ssh私钥
    github设置免ssh密码登录--完美解决Please make sure you have the correct access rights and the repository exists._linux_04

注:ssh-keygen -t rsa -C "自己的github上的邮件地址,不然不设置不成功"

  • 复制本地生成的私钥
    github设置免ssh密码登录--完美解决Please make sure you have the correct access rights and the repository exists._linux_05

注:这里直接复制id_rsa.pub(看清楚是.pub文件)

  • github上设置免ssh密码登录
    github设置免ssh密码登录--完美解决Please make sure you have the correct access rights and the repository exists._github_06
    github设置免ssh密码登录--完美解决Please make sure you have the correct access rights and the repository exists._ssh_07
    github设置免ssh密码登录--完美解决Please make sure you have the correct access rights and the repository exists._linux_08

四、检查是否成功

github设置免ssh密码登录--完美解决Please make sure you have the correct access rights and the repository exists._ssh_09

注:输入命令查看,是否成功,输入yes回车就行,ssh -T git@github.com

github设置免ssh密码登录--完美解决Please make sure you have the correct access rights and the repository exists._ssh_10

五、总结

这样就可以完成clone了,以后什么操作都可以进行操作了,这里小编是结合其他博主的文章来进行操作,最终成功,对他里面不清楚的地方,特别做了说明.特别感谢一下