社区微信群开通啦,扫一扫抢先加入社区官方微信群
社区微信群
运行命令 git clone git@github.com:robbiehanson/CocoaAsyncSocket.git
时出错如下:
Permission denied (publickey).
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
解决办法:
ssh-keygen -t rsa -C <添加注释,可省略>
;.ssh
文件夹,如:C:Usersvance.ssh
,在.ssh
文件夹里面有三个文件:id_rsa
,id_rsa.pub
和 known_hosts
。其中id_rsa
是私钥文件,id_rsa.pub
是公钥文件,打开公钥文件后复制;git clone git@github.com:robbiehanson/CocoaAsyncSocket.git
命令。如果觉得我的文章对您有用,请随意打赏。你的支持将鼓励我继续创作!