【问题标题】:Gitosis - I still have ssh access when I shouldn'tGitosis - 当我不应该访问时,我仍然可以访问 ssh
【发布时间】:2010-12-03 23:21:11
【问题描述】:

我安装了 Gitosis,但没有正确设置。当文档说您不应该这样做时,我仍然可以使用 git 用户进行 ssh。你只应该运行连接到 git 服务器的 git 命令。任何想法我可能做错了什么?

【问题讨论】:

    标签: git gitosis


    【解决方案1】:

    检查 Gitosis 主目录中的 .ssh/authorized_keys 文件。它应该只包含带有强制commandgitosis-serve 的键。

    还要确保 Gitosis 用户只能使用 SSH 密钥登录,而不能使用简单密码。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2013-07-11
      • 2011-05-23
      • 2014-07-01
      • 2021-06-05
      • 1970-01-01
      • 1970-01-01
      • 2022-12-05
      • 2016-03-07
      相关资源
      最近更新 更多