致命:未启用交互式git shell.得到的消息是致命的:未启用交互式git shell

sop*_*hie 2 git fedora fedora16

我用root运行了这个命令:

    [root@localhost git-shell-commands]# ssh git@192.168.1.12
    git@192.168.1.12'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]# 
Run Code Online (Sandbox Code Playgroud)

任何人都可以告诉如何解决这个问题?

twa*_*erg 13

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