无法从远程存储库读取。 SwiftyDropbox

时间:2015-10-02 15:40:54

标签: ios xcode git macos ssh

我创建了ssh密钥并将其添加到github。但是当我启动$ ssh -vT git@github.com时,我收到错误权限被拒绝(公钥)。我尝试了几种不同的方法,但我得到了同样的错误。我仍然希望将SwiftyDropbox添加到我的项目中,但我得到 Permission denied(publickey)。 致命:无法从远程存储库读取。但我都是按订单制作的。我不知道该怎么办?请帮帮我。

    I make following for install SwiftyDropbox
    MacBook-Pro:~ Alexsander$ cd Desktop
    MacBook-Pro:Desktop Alexsander$ cd Apple
    MacBook-Pro:Apple Alexsander$ cd Development
    MacBook-Pro:Development Alexsander$ cd TestCocao
    MacBook-Pro:TestCocao Alexsander$ cd PodsTest
    MacBook-Pro:PodsTest Alexsander$ pod setup
    Setting up CocoaPods master repo
Setup completed
MacBook-Pro:PodsTest Alexsander$ touch Podfile
MacBook-Pro:PodsTest Alexsander$ open Podfile
MacBook-Pro:PodsTest Alexsander$ pod install
Updating local specs repositories
[!] Error installing SwiftyDropbox
[!] /usr/bin/git clone git@github.com:dropbox/SwiftyDropbox.git /var/folders/vl/6w14j04s5n11cgfcrgwdql940000gn/T/d20151002-1479-17ri6hu --single-branch --depth 1 --branch 0.4

Cloning into '/var/folders/vl/6w14j04s5n11cgfcrgwdql940000gn/T/d20151002-1479-17ri6hu'...
Permission denied (publickey).
fatal: Could not read from remote repository.

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

1 个答案:

答案 0 :(得分:2)

创建一个新的ssh密钥并将其添加到我的github帐户后,它对我有用。