![](/img/trans.png)
[英]git: fatal: Could not read from remote repository when cloning Private Cocoapod
[英]Could not read from remote repository. SwiftyDropbox
我創建了 ssh 密鑰並將其添加到 github。但是當我啟動$ ssh -vT git@github.com
時,我收到錯誤Permission denied (publickey) 。 我嘗試了幾種不同的方法,但我得到了同樣的錯誤。 我仍然想將 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.
創建新的ssh密鑰並將其添加到我的github帳戶中后,它對我有用。
檢查您是否已經擁有 ssh 密鑰https://docs.github.com/es/authentication/connecting-to-github-with-ssh/checking-for-existing-ssh-keys
如果不這樣做,請創建一個新的。 https://docs.github.com/es/authentication/connecting-to-github-with-ssh/generating-a-new-ssh-key-and-adding-it-to-the-ssh-agent
然后將它添加到你的 Github https://docs.github.com/es/authentication/connecting-to-github-with-ssh/adding-a-new-ssh-key-to-your-github-account
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.