我创建了ssh密钥并将其添加到github。但是,当我启动$ ssh -vT [email protected]时,出现错误权限被拒绝(publickey)。我尝试了几种不同的方法,但是遇到了相同的错误。仍然我想将SwiftyDropbox添加到我的项目中,但是我收到权限被拒绝(公钥)。
致命:无法从远程存储库读取。
但是我都是按顺序制作的。我不知道该怎么办?请帮我。

    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 [email protected]: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.

最佳答案

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

07-27 15:56