我正在尝试在Raspberry Pi上使用mercurial-server (在我要求sysadmins安装在Ubuntu服务器上之前,方便地在我的办公桌前)。Pi正在运行Raspbian Buster (最近的更新/升级例程)。最终目标是为学生提供一组repos,这样他们就不能偷看彼此的代码,但我可以克隆任何学生的作业来评分。
我在我的主目录中有一个小的Mercurial repo测试项目。在运行Mercurial服务器refresh-auth脚本之后,我的id_rsa.pub密钥在~hg/.ssh/authorized_keys中。在日志文件中,我可以看到我的公钥交换起作用了。/var/lib/mercurial-server/中的所有内容似乎都归hg:hg所有,权限看起来也很合理。我从一个localhost运行到另一个localhost,所以它是在两端运行的相同版本的hg。我可以在hg的主目录中使用sudo -u hg hg init louis/testproject,它创建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!我也用TortoiseHG在Windows10 (x64)上尝试过。它开始工作,然后停止,需要任务管理器来终止TortoiseHG工作台。我不再尝试这样做,以消除复杂性。
我希望问题不是Pi,但我想我总是可以得到一个运行Ubuntu的DO DO。
一如既往,提前感谢。
发布于 2020-05-11 21:43:59
哦,不要紧...access.conf文件不正确。
https://stackoverflow.com/questions/61716980
复制相似问题