【发布时间】:2016-12-27 06:57:09
【问题描述】:
我想通过 ssh 连接在 bitbucket 上使用 git,但 git clone 返回致命错误。
我创建了一个名为 sshtest 的存储库,并且我确定使用了正确的 ssh 密钥,因为我使用以下 ssh 命令确认它。
你有什么想法可以提出这个错误吗?
$ ssh -T git@bitbucket.org # show nothing
$ ssh git@bitbucket.org
PTY allocation request failed on channel 0
logged in as username.
You can use git or hg to connect to Bitbucket. Shell access is disabled.
Connection to bitbucket.org closed.
$ git clone git@bitbucket.org:username/sshtest.git
Cloning into 'sshtest'...
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
【问题讨论】: