【发布时间】:2018-09-25 22:42:34
【问题描述】:
gitolite 信息不起作用,添加密钥会将它们变成 no access 密钥,并且没有在 auth-keys 文件中创建相应的条目。
要修复此问题,请在 gitolite 服务器上运行 gitolite setup
问题:是什么让我陷入了困境?
gitolite setup 在第 n 次调用时会做什么(根据文档它修复了钩子,它不再进行设置,但我想知道用例是什么,哪个是我的)?
有关 gitolite 信息的更多详细信息
gitolite info 命令是这样调用的:
> ssh git-user@ser-git
PTY allocation request failed on channel 0
hello git-admin, this is ...@... running gitolite3 3.6.7-2 (Debian) on git 2.17.1
R W some-repository
R W gitolite-admin
R W testing
Connection to ser-git closed.
错误的输出是:FATAL: unknown git/gitolite command: 'info'
更多细节:无法访问的密钥。
gitolite sshkeys-lint 显示带有 (no access) 的键,现在这些键可以在我设置它们时访问(现在意味着在 gitolite setup 之后)。
ssh-keygen -lf /home/repo/.ssh/authorized_keys | wc -l(或者没有管道部分,无论如何)键的数量和它们的名称表明我没有添加最新的。
对我不起作用的类似问题:keydir entries not propagating to authorized_keys
【问题讨论】: