我严格遵循Ubuntu Server 12 LTS上的整个教程“Set up SSH for Git and Mercurial on Mac OSX/Linux”。我已经生成了公钥并将其添加到BitBucket网站上的帐户设置中。在Ubuntu中,如果我键入:
ssh -T git@bitbucket.org
我可以看到适当的欢迎信息:
logged in as username.
You can use git or hg to connect to Bitbucket. Shell access is disabled.
但是当我尝试克隆(或推送)任何存储库时:
Cloning into 'directory'...
Permission denied (publickey).
fatal: The remote end hung up unexpectedly
有什么问题?