我已经用 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]#
谁能告诉我如何解决这个问题?
最佳答案
git help shell
给出了一些关于如何设置它的指示。输出中也有提示。 git 用户需要在其主目录中有一个名为 git-shell-commands
的子目录,具有适当的权限,并填充您希望用户能够运行的内容。
关于git - 致命 : Interactive git shell is not enabled. 收到致命消息:交互式 git shell 未启用,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/11120399/