你好,如果我尝试使用ssh连接到bitbucket.org。
ssh -vT [email protected]
一切正常
debug1: Authentication succeeded (publickey).
但如果我尝试使用 git clone
命令,我收到这个消息。
Permission denied (publickey).
fatal: The remote end hung up unexpectedly
一些额外的信息:
~/.ssh/
ssh-add -l
返回正确的密钥。(RSA)我能够使这个工作,但我的git实现有多个问题。
git clone
与模式[email protected],在尝试了与 粪便@bitbucket.org 一切都成功了。我希望这能帮到和我有同样问题的人。
对于这个问题,这个答案比公认的答案对我帮助更大。Git 在错误的位置寻找我的 SSH 密钥。