你好,如果我尝试使用SSH连接到bitbucket.org
ssh -vT git@bitbucket.org
一切运行良好
debug1: Authentication succeeded (publickey).
但是如果我尝试使用git clone
命令,我会收到以下消息:
Permission denied (publickey).
fatal: The remote end hung up unexpectedly
一些额外的信息:
- 我已经在我的Bitbucket帐户中包含了公钥
- 我的密钥位于
~/.ssh/
目录下 - 我没有使用sudo运行
- 命令
ssh-add -l
返回正确的密钥。(RSA)