吊舱设置权限被拒绝(公钥)

Coo*_*uin 5 git terminal github cocoapods

我已经使用可可豆荚了一段时间了,而且效果很好。昨天它停止工作了。我得到:

[!] Unable to add a source with url 'https://github.com/CocoaPods/Specs.git' named 'master'.
You can try adding it manually in '~/.cocoapods/repos' or via 'pod repo add'.
Run Code Online (Sandbox Code Playgroud)

在Pod安装和

[!] /usr/bin/git clone https://github.com/CocoaPods/Specs.git master

Cloning into 'master'...
Permission denied (publickey).
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.
Run Code Online (Sandbox Code Playgroud)

当我使用git clone克隆到repos目录时,在pod设置上类似。

我搜索了每种解决方案,但都没有成功-起初,我认为是网络攻击在10月21日影响了GitHub,但我更改了DNS设置并使其正常运行。我还怀疑它与使用SSH密钥有关,但我正在使用HTTPS。我也并没有真正使用GitHub-我使用的是GitLab,所以好像没有弄乱任何设置,但这没关系,因为我没有使用SSH。

您需要的任何信息,或者我可能会想念我。

任何帮助将非常感激!!!

细节:我尝试了最新的可可豆荚和预发行版(已卸载并重新安装了多次(建议使用sudo))。使用Xcode8。Swift3(无关紧要,但我认为无论如何我都会把它包括在内)。

Coo*_*uin 1

我需要(重新)创建 SSH 密钥并按照说明将其安装在我的计算机上。查看此处了解更多信息https://help.github.com/articles/error-permission-denied-publickey/