一段时间以来,我一直在使用 Homested 在本地机器上与合作伙伴开发一个项目,是时候将该项目放在真实服务器上了。存储库位于 bitbucket 上。我把它放在 git 服务器上,生成一个公钥,将密钥添加到 bitbucket 上的“部署密钥”部分。在执行我的存储库的 git clone 命令时,它写道。
Permission denied (publickey).
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
请告诉我哪里出了问题。
您需要检查您的私钥是否已添加到 ssh-agent:
如果不存在,则需要使用以下命令添加它:
如果发现 ssh-agent 没有运行,那么你需要启动它:
接下来我们用bitbucket验证一下:
你可以克隆你的存储库:)