Bitbucket Permission denied (publickey).

问题描述 投票:1回答:2

你好,如果我尝试使用ssh连接到bitbucket.org。

ssh -vT [email protected]

一切正常

debug1: Authentication succeeded (publickey).

但如果我尝试使用 git clone 命令,我收到这个消息。

Permission denied (publickey).
fatal: The remote end hung up unexpectedly

一些额外的信息:

  • 我已经在Bitbucket账户中加入了公钥。
  • 我的钥匙在 ~/.ssh/
  • 我没有用sudo运行
  • 命令 ssh-add -l 返回正确的密钥。(RSA)
git ssh key bitbucket public
2个回答
1
投票

我能够使这个工作,但我的git实现有多个问题。

  • 我试图访问一个... 组织 仓库,但我将公钥添加到我的主账户。
  • 我试图使用 git clone 与模式[email protected],在尝试了与 粪便@bitbucket.org 一切都成功了。

我希望这能帮到和我有同样问题的人。


0
投票

对于这个问题,这个答案比公认的答案对我帮助更大。Git 在错误的位置寻找我的 SSH 密钥。

© www.soinside.com 2019 - 2024. All rights reserved.