| Junio C Hamano | 1a4e841 | 2005-12-27 08:17:23 | [diff] [blame] | 1 | git-shell(1) |
| 2 | ============ |
| 3 | |
| 4 | NAME |
| 5 | ---- |
| Junio C Hamano | 7c73c66 | 2007-01-19 00:37:50 | [diff] [blame] | 6 | git-shell - Restricted login shell for GIT-only SSH access |
| Junio C Hamano | 1a4e841 | 2005-12-27 08:17:23 | [diff] [blame] | 7 | |
| 8 | |
| 9 | SYNOPSIS |
| 10 | -------- |
| Junio C Hamano | fce7c7e | 2008-07-02 03:06:38 | [diff] [blame] | 11 | '$(git --exec-path)/git-shell' -c <command> <argument> |
| Junio C Hamano | 1a4e841 | 2005-12-27 08:17:23 | [diff] [blame] | 12 | |
| 13 | DESCRIPTION |
| 14 | ----------- |
| 15 | This is meant to be used as a login shell for SSH accounts you want |
| 16 | to restrict to GIT pull/push access only. It permits execution only |
| 17 | of server-side GIT commands implementing the pull/push functionality. |
| 18 | The commands can be executed only by the '-c' option; the shell is not |
| 19 | interactive. |
| 20 | |
| Junio C Hamano | 3bd66e9 | 2009-04-18 06:17:56 | [diff] [blame] | 21 | Currently, only four commands are permitted to be called, 'git-receive-pack' |
| 22 | 'git-upload-pack' and 'git-upload-archive' with a single required argument, or |
| 23 | 'cvs server' (to invoke 'git-cvsserver'). |
| Junio C Hamano | 1a4e841 | 2005-12-27 08:17:23 | [diff] [blame] | 24 | |
| 25 | Author |
| 26 | ------ |
| 27 | Written by Linus Torvalds <torvalds@osdl.org> |
| 28 | |
| 29 | Documentation |
| 30 | -------------- |
| 31 | Documentation by Petr Baudis and the git-list <git@vger.kernel.org>. |
| 32 | |
| 33 | GIT |
| 34 | --- |
| Junio C Hamano | f7c042d | 2008-06-06 22:50:53 | [diff] [blame] | 35 | Part of the linkgit:git[1] suite |