| 1 |
.\" Man page generated from reStructuredText. |
| 2 |
. |
| 3 |
.TH HG-SSH 8 "" "" "Mercurial Manual" |
| 4 |
.SH NAME |
| 5 |
hg-ssh \- restricted ssh login shell for Mercurial |
| 6 |
. |
| 7 |
.nr rst2man-indent-level 0 |
| 8 |
. |
| 9 |
.de1 rstReportMargin |
| 10 |
\\$1 \\n[an-margin] |
| 11 |
level \\n[rst2man-indent-level] |
| 12 |
level margin: \\n[rst2man-indent\\n[rst2man-indent-level]] |
| 13 |
- |
| 14 |
\\n[rst2man-indent0] |
| 15 |
\\n[rst2man-indent1] |
| 16 |
\\n[rst2man-indent2] |
| 17 |
.. |
| 18 |
.de1 INDENT |
| 19 |
.\" .rstReportMargin pre: |
| 20 |
. RS \\$1 |
| 21 |
. nr rst2man-indent\\n[rst2man-indent-level] \\n[an-margin] |
| 22 |
. nr rst2man-indent-level +1 |
| 23 |
.\" .rstReportMargin post: |
| 24 |
.. |
| 25 |
.de UNINDENT |
| 26 |
. RE |
| 27 |
.\" indent \\n[an-margin] |
| 28 |
.\" old: \\n[rst2man-indent\\n[rst2man-indent-level]] |
| 29 |
.nr rst2man-indent-level -1 |
| 30 |
.\" new: \\n[rst2man-indent\\n[rst2man-indent-level]] |
| 31 |
.in \\n[rst2man-indent\\n[rst2man-indent-level]]u |
| 32 |
.. |
| 33 |
.SH SYNOPSIS |
| 34 |
.sp |
| 35 |
\fBhg\-ssh\fP repositories... |
| 36 |
.SH DESCRIPTION |
| 37 |
.sp |
| 38 |
\fBhg\-ssh\fP is a wrapper for ssh access to a limited set of mercurial repos. |
| 39 |
.sp |
| 40 |
To be used in ~/.ssh/authorized_keys with the "command" option, see sshd(8): |
| 41 |
command="hg\-ssh path/to/repo1 /path/to/repo2 ~/repo3 ~user/repo4" ssh\-dss ... |
| 42 |
(probably together with these other useful options: |
| 43 |
no\-port\-forwarding,no\-X11\-forwarding,no\-agent\-forwarding) |
| 44 |
.sp |
| 45 |
This allows pull/push over ssh from/to the repositories given as arguments. |
| 46 |
.sp |
| 47 |
If all your repositories are subdirectories of a common directory, you can |
| 48 |
allow shorter paths with: |
| 49 |
command="cd path/to/my/repositories && hg\-ssh repo1 subdir/repo2" |
| 50 |
.sp |
| 51 |
You can use pattern matching of your normal shell, e.g.: |
| 52 |
command="cd repos && hg\-ssh user/thomas/* projects/{mercurial,foo}" |
| 53 |
.sp |
| 54 |
You can also add a \-\-read\-only flag to allow read\-only access to a key, e.g.: |
| 55 |
command="hg\-ssh \-\-read\-only repos/*" |
| 56 |
.SH BUGS |
| 57 |
.sp |
| 58 |
Probably lots, please post them to the mailing list (see \%Resources\: |
| 59 |
below) when you find them. |
| 60 |
.SH SEE ALSO |
| 61 |
.sp |
| 62 |
\%\fBhg\fP(1)\: |
| 63 |
.SH AUTHOR |
| 64 |
.sp |
| 65 |
Written by Olivia Mackall <\%[email protected]\:> |
| 66 |
.SH RESOURCES |
| 67 |
.sp |
| 68 |
Main Web Site: \%https://mercurial\-scm.org/\: |
| 69 |
.sp |
| 70 |
Source code repository: \%https://www.mercurial\-scm.org/repo/hg\: |
| 71 |
.sp |
| 72 |
Mailing list: \%https://www.mercurial\-scm.org/mailman/listinfo/mercurial/\: |
| 73 |
.SH COPYING |
| 74 |
.sp |
| 75 |
Copyright (C) 2005\-2016 Olivia Mackall. |
| 76 |
Free use of this software is granted under the terms of the GNU General |
| 77 |
Public License version 2 or any later version. |
| 78 |
.\" Common link and substitution definitions. |
| 79 |
. |
| 80 |
.SH AUTHOR |
| 81 |
Thomas Arendsen Hein <[email protected]> |
| 82 |
|
| 83 |
Organization: Mercurial |
| 84 |
.\" Generated by docutils manpage writer. |
| 85 |
.\" |
| 86 |
. |