问题描述
尝试按照GoodDataJS的入门进行操作:
尝试克隆repo时,会失败,并显示错误消息:
克隆到'gooddata-js'...
权限被拒绝(publickey)。
致命:无法从远程存储库读取数据。
请确保您拥有正确的访问权限
并存在该存储库。 p>如果您从未在您的帐户中注册过公钥/私钥ssh密钥,会发生这种情况。
请参阅和。
在这种情况下,正如评论所言,只有https可以工作。
git clone https://github.com/gooddata/gooddata-js.git
ssh和https协议允许用户进行身份验证。
支持真正的匿名克隆 (如): /github.com/gooddata/gooddata-js.git 但是,假设您的工作站允许端口9418(用于传出连接。 Trying to follow the 'Getting Started' for the GoodDataJS here: http://sdk.gooddata.com/gooddata-js/getting-started/ When trying to clone repo it fails with the error: "Cloning into 'gooddata-js'...Permission denied (publickey).fatal: Could not read from remote repository. Please make sure you have the correct access rightsand the repository exists." That happens if you never registered a public/private ssh key to your account. In that case, as commented, only https would work. ssh and https protocols allows for user authentication. True anonymous cloning could be supported (as in this answer) with: But that supposed your workstation allows port 9418 (used by git protocol) for outgoing connection. 这篇关于GoodData:JavaScript SDK设置 - 回购克隆错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!
See "GitHub - Permission denied (publickey)" and "Error: Permission denied (publickey)".git clone https://github.com/gooddata/gooddata-js.git
git clone git://github.com/gooddata/gooddata-js.git