我已使用 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 help shell
给出了一些如何设置的指导。输出中也有提示。 git 用户需要在其主目录中有一个名为 git-shell-commands
的子目录,具有适当的权限,并填充您希望用户能够运行的内容。
mkdir /home/git_user/git-shell-commands
chmod 777 /home/git_user/git-shell-commands
还好~