小编Pet*_*ter的帖子

Git shell 未启用?

我正在尝试安装 git 服务器。当我将 git 用户的默认 shell 设置为 /usr/bin/git-shell 时,我在以 git 身份登录时收到错误消息。

fatal: Interactive git shell is not enabled.
hint: ~/git-shell-commands should exist and have read and execute access.
Run Code Online (Sandbox Code Playgroud)

基于 ssh 密钥的访问工作,权限设置正确。

Google 搜索未显示有关此错误的任何信息。

我在过去的安装中也使用了这种方法,但没有显示此类错误。我还查看了工作服务器是否有一些额外的文件或配置但没有这样的东西。

系统规格:

  • Gentoo linux (最新)
  • git 1.7.5.3

/etc/passwd 行:

git:x:1002:1004::/home/git:/usr/bin/git-shell
Run Code Online (Sandbox Code Playgroud)

shell git

25
推荐指数
3
解决办法
4万
查看次数

标签 统计

git ×1

shell ×1