1
Vinods-Mac-mini-2:~ vinod$  cd desktop
Vinods-Mac-mini-2:desktop vinod$ git clone https://github.com/box/box-ios-sdk-sample-app.git
Cloning into 'box-ios-sdk-sample-app'...
remote: Counting objects: 158, done.
remote: Compressing objects: 100% (87/87), done.
remote: Total 158 (delta 76), reused 143 (delta 63)
Receiving objects: 100% (158/158), 70.79 KiB | 83 KiB/s, done.
Resolving deltas: 100% (76/76), done.
Vinods-Mac-mini-2:desktop vinod$ cd box-ios-sdk-sample-app
Vinods-Mac-mini-2:box-ios-sdk-sample-app vinod$ git submodule init
Submodule 'vendor/BoxSDK' (git@github.com:box/box-ios-sdk-private.git) registered for path 'vendor/BoxSDK'
Vinods-Mac-mini-2:box-ios-sdk-sample-app vinod$ git submodule update
Cloning into 'vendor/BoxSDK'...
Permission denied (publickey).
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.
Clone of 'git@github.com:box/box-ios-sdk-private.git' into submodule path 'vendor/BoxSDK' failed
Vinods-Mac-mini-2:box-ios-sdk-sample-app vinod$ 

这是我在使用终端集成 BOX SDK 时遇到的错误如何解决这个错误?

4

1 回答 1

6

Permission denied (publickey) 实际上是您在 github 上没有设置公钥时收到的错误。只需按照以下快速步骤将它们添加到您的帐户:https ://help.github.com/articles/generating-ssh-keys一切都应该正常。

于 2013-06-07T16:29:12.210 回答