【问题标题】:bitbucket permission denied (public key) when git pullgit pull 时 bitbucket 权限被拒绝(公钥)
【发布时间】:2020-12-30 12:46:30
【问题描述】:

当我尝试从位桶中提取时出现以下错误。我在 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 密钥添加到位存储桶帐户访问密钥,并尝试将密钥添加到我的存储库本身。早些时候我已经成功地将我的代码推送到了比特桶,但从未拉取过。

【问题讨论】:

    标签: git bitbucket git-pull


    【解决方案1】:

    尝试“Troubleshooting SSH connections to AWS CodeCommit”中列出的第一种方法

    在 bash 中,你可以这样做:

    GIT_SSH_COMMAND="ssh -v" git pull
    

    这将显示 Git 用于该操作的 shs 密钥:您可以检查它的公钥确实是您在 AWS 账户/ECS 实例中设置的那个。

    【讨论】:

      猜你喜欢
      • 2018-03-11
      • 2017-10-30
      • 1970-01-01
      • 1970-01-01
      • 2012-10-24
      • 2014-03-18
      • 1970-01-01
      • 2018-04-08
      • 1970-01-01
      相关资源
      最近更新 更多