git拉取时bitbucket权限被拒绝(公钥)

git拉取时bitbucket权限被拒绝(公钥),git,bitbucket,git-pull,Git,Bitbucket,Git Pull,当我试图从钻头铲斗中拉出时,我得到以下错误。我在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密钥添加到bit bucket帐户访问密钥,并尝试将密钥添加

当我试图从钻头铲斗中拉出时,我得到以下错误。我在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密钥添加到bit bucket帐户访问密钥,并尝试将密钥添加到我的存储库本身。早些时候,我已成功地将代码推送到位存储桶,但从未执行过拉取操作。

请尝试“”中列出的第一种方法

在bash中,您可以执行以下操作:

GIT_SSH_COMMAND="ssh -v" git pull

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

请尝试“”中列出的第一种方法

在bash中,您可以执行以下操作:

GIT_SSH_COMMAND="ssh -v" git pull
这将向您显示Git用于该操作的shs密钥:您可以检查它的公钥是否确实是您在AWS帐户/ECS实例中设置的公钥