【发布时间】:2012-03-18 20:37:45
【问题描述】:
在我的电脑上
.ssh/config:
Host bitbucket
HostName bitbucket.org
User hg
IdentityFile ~/.ssh/id_rsa_pwd
.hg/hgrc
[paths]
default = ssh://hg@bitbucket.org/lohoris/varlibs
(运行 OSX 10.6)
我在 debian 服务器上有完全相同的文件,但在“尝试”shell 登录时,两者都可以:
PTY allocation request failed on channel 0
conq: logged in as lohoris.
You can use git or hg to connect to Bitbucket. Shell access is disabled.
Connection to bitbucket.org closed.
mercurial 连接只能在我的电脑上工作,而从服务器它拒绝合作:
lohoris@office:~/www/varlibs$ hg pull
remote: Permission denied (publickey).
abort: no suitable response from remote hg!
这与您在密钥错误时收到的消息相同,只是它当然没有错误(正如我所说,尝试ssh bitbucket 确实有效)。
它可能使用了错误的密钥,因为它甚至没有试图询问我的密码,但我无法理解为什么。
【问题讨论】:
标签: mercurial bitbucket ssh-keys