致命:交互式 git shell 未启用。收到致命消息:交互式 git shell 未启用

问题描述 投票:0回答:2

我已使用 root 运行此命令:

    [root@localhost git-shell-commands]# ssh [email protected]
    [email protected]'s password: 
    Last login: Wed Jun 20 15:08:26 2012 from new-host.home
    fatal: Interactive git shell is not enabled.
    hint: ~/git-shell-commands should exist and have read and execute access.
    Connection to 192.168.1.12 closed.
    [root@localhost git-shell-commands]# 

有人可以告诉如何解决这个问题吗?

git fedora fedora16
2个回答
14
投票

git help shell
给出了一些如何设置的指导。输出中也有提示。 git 用户需要在其主目录中有一个名为
git-shell-commands
的子目录,具有适当的权限,并填充您希望用户能够运行的内容。


0
投票
mkdir /home/git_user/git-shell-commands
chmod 777 /home/git_user/git-shell-commands

还好~

© www.soinside.com 2019 - 2024. All rights reserved.