【发布时间】:2015-02-05 17:02:27
【问题描述】:
我无法使用我的部署密钥将我的存储库克隆到我的远程 EC2 ubuntu 实例。 以下是我遵循的步骤。
- 我删除了我的 bitbucket 帐户中的现有部署密钥
- 我清理了
~/.ssh/know_hosts关注https://stackoverflow.com/a/26520681/808734 - 我在these steps 之后生成了我的新密钥 并将其作为deployment key 添加到存储库中。
-
这是
ssh -T git@bitbucket.org的输出You can use git or hg to connect to Bitbucket. Shell access is disabled. This deploy key has read access to the following repositories: username/repository: KEYNAME -- email@gmail.com 但是当我尝试克隆存储库时
sudo git clone git@bitbucket.org:username/repository.git我收到以下错误Cloning into 'repository'... Permission denied (publickey). fatal: Could not read from remote repository. Please make sure you have the correct access rights and the repository exists.
我在这里遗漏了什么吗?有人有什么建议吗?
感谢阅读。
【问题讨论】:
标签: git ssh amazon-ec2 bitbucket