当我试图从位存储桶中拉出时,我得到了以下错误。我在一个AWS ECS实例中:
git@bitbucket.org: Permission denied (publickey).
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.我已经将ssh密钥添加到位存储桶帐户访问密钥,并尝试将该密钥添加到我的存储库本身。早些时候,我已经成功地将我的代码推入位桶,但从来没有拉过。
发布于 2020-09-12 13:14:23
首先尝试"Troubleshooting SSH connections to AWS CodeCommit“中列出的方法之一
在bash中,您可以执行以下操作:
GIT_SSH_COMMAND="ssh -v" git pull这将显示Git用于该操作的shs密钥:您可以检查其公钥是否确实是您在AWS帐户/ECS实例中设置的公钥。
https://stackoverflow.com/questions/63856467
复制相似问题