简体   繁体   English

git clone失败信息:权限被拒绝(publickey)

[英]git clone fail info:permission denied(publickey)

the command 命令

git clone git@github.com********* git clone git@github.com*********

will failed with the info : 将失败的信息:

Permission denied (publickey).
fatal: Could not read from remote repository.

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

I have searched it on internet many times. 我在互联网上搜索了很多次。 the answer usually is about that the public key is wrong or so on. 答案通常是关于公钥是错误的等等。 however when i try the command 但是,当我尝试命令

ssh -T git@github.com ssh -T git@github.com

it work.. 这行得通..

and my id_rsa.pub is just added on github,and when i use the command above i can see the tags under my ssh key Last used within the last day 我的id_rsa.pub刚刚添加到github上,当我使用上面的命令时,我可以看到我的ssh键下的标签Last used within the last day

So i can't understand what is the wrong with my git.feel so bad T^T.My morning is just work on this problem and look for the solution. 所以我无法理解我的git.feel有什么问题。这很糟糕T ^ T.我早上只是解决这个问题并寻找解决方案。

My system is macOS 我的系统是macOS

Thanks for your answer. 感谢您的回答。

this problem confused me a lot,even i have tried all the solution that i could find on internet,until the day i reinstall my computer by accident. 这个问题困扰了我很多,甚至我已经尝试了我可以在互联网上找到的所有解决方案,直到我意外重新安装我的电脑的那一天。 It works. 有用。 I guess some conf in my old system is wrong with the git. 我想我的旧系统中的一些内容与git有关。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM