我用 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
的子目录,该子目录具有适当的权限,并填充了您希望用户能够运行的内容。