fatal: Interactive git shell is not enabled. got the message fatal: Interactive git shell is not enabled
Asked Answered
S

2

3

I have run this command with 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]# 

Anybody could told how to solve that problem?

Sian answered 20/6, 2012 at 13:13 Comment(0)
S
14

git help shell gives some pointers on how to set it up. The hint in the output also. The git user need a subdirectory called git-shell-commands in its home directory, with appropriate permissions, and populated with the things you want the user to be able to run.

Scilla answered 20/6, 2012 at 13:56 Comment(0)
V
0
mkdir /home/git_user/git-shell-commands
chmod 777 /home/git_user/git-shell-commands
Voltmer answered 13/5 at 10:26 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.