在BitBucket上出现错误消息"有人已将此注册为部署密钥"

Sea*_*abs 8 git bitbucket ssh-keys git-clone

我正在尝试在我的bitbucket帐户上克隆git repo,但在尝试克隆此repo时收到此错误消息.到我设置的新PC:

克隆到'xxxxx'...存储库访问被拒绝.部署密钥与请求的存储库无关.致命:无法从远程存储库读取.

请确保您具有正确的访问权限并且存储库存在.

当我尝试将这台新机器的ssh密钥添加到bitbucket时,我收到此错误:

有人已将此注册为部署密钥.

所以看起来我可能在某个阶段意外地将此机器的ssh密钥注册为部署密钥.你如何找到bitbucket中的哪个repo实际上将此密钥注册为部署(而不是常规ssh访问)密钥?

对不起,如果没有在理想的地方发布,如果还有一个相关的话,我会把它移到另一个SO部分.

Jim*_*ond 13

您可以使用SSH命令查看该密钥的添加位置:ssh -Ti /path/to/key git@bitbucket.org.应该回来这样的事情:

authenticated via a deploy key.


You can use git or hg to connect to Bitbucket. Shell access is disabled.

This deploy key has read access to the following repositories:

owner/repo: Test key - owner@host.tld
Run Code Online (Sandbox Code Playgroud)

  • 不幸的是,它在 MacOS 上无效,或者至少不显示所有者。 (3认同)