【发布时间】:2016-08-17 06:46:12
【问题描述】:
我已经按照https://secure.phabricator.com/book/phabricator/article/diffusion_hosting/ 和https://gist.github.com/sparrc/b4eff48a3e7af8411fc1 中提到的步骤在我的云 ubuntu 服务器中使用扩散设置了一个带有 git 存储库托管的 phabricator 实例
我可以在我的 phabricator 网站的扩散部分看到存储库。我还可以看到克隆 ssh URL,但是当我尝试从客户端实际克隆 repo 时,我看到以下内容:
$ git clone ssh://ph-git@pm.example.com:2222/diffusion/GPSCLJ/gps_v1.git gps
Cloning into 'gps'...
Permission denied (publickey,keyboard-interactive).
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
我已将我的公钥上传到我的 phabricator 帐户
我对@987654323@ 中提到的一般设置还有其他疑问。 /* 此处不复制疑问,因为疑问的上下文在 github 要点中 */
================================
嘿@CEPA 感谢您的回复(在这里编辑,因为如果我回复您的评论,我无法格式化我的观点)
- 我在克隆 url 中看到 2222,因为我已经明确地完成了“./bin/config set diffusion.ssh-port 2222”。在执行“./bin/config delete diffusion.ssh-port”之后,我再也看不到它了
- 但是,我确实在克隆 URL 中看到了“git@...”
- 此外,如果我在克隆时在 URL 中使用 2222,它会使用我的密钥(无论我是否使用“git@”)
- 但如果我不使用 2222,那么它会在我使用“git@”时询问密码,并且如果我不使用“请确保....”则失败
【问题讨论】:
标签: git ssh git-clone phabricator