命令
git clone git@github.com *********
将失败并显示信息:
Permission denied (publickey).
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
我已多次在互联网上搜索过它。 答案通常是关于公钥是错误的等等。 但是当我尝试命令时
ssh -T git@github.com
工作..
我的id_rsa.pub刚刚添加到github上,当我使用上面的命令时,我可以看到我的ssh键下的标签Last used within the last day
所以我无法理解我的git.feel有什么问题。感觉很糟糕T ^ T.我早上只是解决这个问题并寻找解决方案。
我的系统是macOS
感谢您的回答。
答案 0 :(得分:0)
这个问题困扰了我很多,甚至我已经尝试了我可以在互联网上找到的所有解决方案,直到我意外重新安装我的电脑的那一天。 有用。 我想我的旧系统中的一些内容与git有关。