"mercurial-server: access denied "使用ssh样式的URL。

问题描述 投票:1回答:1

我试图在Raspberry Pi上使用mercurial-server(在我要求系统管理员在Ubuntu服务器上安装之前,在我的桌子上很方便)。Pi正在运行Raspbian Buster(最近的更新升级程序)。最终的目标是为学生提供一套仓库,这样他们就不能偷看对方的代码,但我可以克隆任何学生的作品进行评分。

我在我的home目录下有一个小型的Mercurial repo testproject。我的 id_rsa.pub 密钥在 ~hg/.ssh/authorized_keys 运行Mercurial服务器后 refresh-auth 脚本。在日志文件中,我可以看到我的公钥交换成功了。一切都在 /var/lib/mercurial-server/ 似乎是hg:hg的,而且权限看起来也很合理。我从localhost运行到localhost,所以两端运行的是同一个版本的hg。我可以 sudo -u hg hg init louis/testproject 在hg的home目录下,它没有问题地创建了repo(我在从ssh重试之前删除了它)。

$ cd testproject
$ hg clone -v --debug . ssh://hg@localhost/louis/testproject

我得到的是。

running ssh 'hg@localhost' 'hg init louis/testproject'
mercurial-server: access denied
abort: could not create remote repo!

我也试过在Windows 10 (x64)上使用TortoiseHG。它开始工作,然后只是停滞,需要任务管理器来杀死TortoiseHG工作台。我停止了尝试,以消除复杂性。

我希望问题不是Pi,但我想我总是可以得到一个运行Ubuntu的DO液滴。

一如既往,先谢谢你。

mercurial
1个回答
0
投票

哦,不要紧... access.conf文件不正确。

© www.soinside.com 2019 - 2024. All rights reserved.