]>
Commit | Line | Data |
---|---|---|
d43367af PB |
1 | git-shell(1) |
2 | ============ | |
3 | ||
4 | NAME | |
5 | ---- | |
70256a3a | 6 | git-shell - Restricted login shell for Git-only SSH access |
d43367af PB |
7 | |
8 | ||
9 | SYNOPSIS | |
10 | -------- | |
7791a1d9 | 11 | [verse] |
70256a3a | 12 | 'git shell' [-c <command> <argument>] |
d43367af PB |
13 | |
14 | DESCRIPTION | |
15 | ----------- | |
70256a3a RR |
16 | |
17 | A login shell for SSH accounts to provide restricted Git access. When | |
18 | '-c' is given, the program executes <command> non-interactively; | |
19 | <command> can be one of 'git receive-pack', 'git upload-pack', 'git | |
20 | upload-archive', 'cvs server', or a command in COMMAND_DIR. The shell | |
21 | is started in interactive mode when no arguments are given; in this | |
22 | case, COMMAND_DIR must exist, and any of the executables in it can be | |
23 | invoked. | |
24 | ||
25 | 'cvs server' is a special command which executes git-cvsserver. | |
26 | ||
27 | COMMAND_DIR is the path "$HOME/git-shell-commands". The user must have | |
28 | read and execute permissions to the directory in order to execute the | |
29 | programs in it. The programs are executed with a cwd of $HOME, and | |
30 | <argument> is parsed as a command-line string. | |
d43367af | 31 | |
d43367af PB |
32 | GIT |
33 | --- | |
9e1f0a85 | 34 | Part of the linkgit:git[1] suite |