ssh - Gitolite ssh 命令

标签 ssh gitolite

我正在尝试使用正在运行的 gitolite 服务器。运行 ssh git@host info 时,我得到了预期的存储库列表。但是当我尝试运行其他命令时,例如ssh git@host help 服务器响应错误命令:help

不幸的是,gitolite 文档对故障排除没有帮助:(

有什么建议吗? 干杯。

最佳答案

这是预期的。

基于如何gitolite uses ssh (即,使用 forced command ),您将始终收到任何命令的错误消息,除了:

没有经过 Gitolite 授权的交互式 ssh session 。
任何命令都会被拦截并通过 gitolite 脚本运行。
如果它不是已定义和启用的命令之一...您每次都会收到“错误命令”。

在这种特定情况下,OP 使用的 gitolite 配置没有 help 作为已定义和启用的命令;根据后续评论。

关于ssh - Gitolite ssh 命令,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/11646217/

相关文章:

git push origin 被 fallthru 拒绝,hook 拒绝 : gitolite

linux - 在 CentOS 5.6 上安装 Gitolite 时遇到问题

Perl - 通过包含 require 指令的 SSH 远程运行脚本

git - 推/pull 到 Github 在 Android Studio 和 IntelliJ 中被破坏

git - 使用 git bash(windows) 创建 ssh 配置文件的命令?

Gitolite 权限仅对一个分支

Git:Web 开发的推荐设置

Python 连接到 ssh mysql 服务器

linux - 在远程主机上执行脚本 - 本地主机给出的输出

git - 阻止用户更改 .gitignore 文件?