File: hg-ssh.8

package info (click to toggle)
mercurial 4.0-1%2Bdeb9u1
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 32,100 kB
  • ctags: 13,376
  • sloc: python: 94,424; ansic: 8,392; tcl: 3,715; lisp: 1,448; sh: 999; makefile: 375; xml: 35
file content (40 lines) | stat: -rw-r--r-- 870 bytes parent folder | download | duplicates (10)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
.TH HG-SSH 8 2008-01-03
.SH NAME
hg-ssh \- restricted ssh login shell for Mercurial
.SH SYNOPSIS
.B hg-ssh
.IR repositories ...
.SH DESCRIPTION
.B hg-ssh
can be used as a restricted shell where access to Mercurial repositories is given over
.BR ssh (1).
It should be specified, together with the paths to the
.I repositories
the user should be given access to, as a
.I command
option in an
.BR authorized_keys (5)
file.
.PP
An example
.I authorized_keys
line using
.BR hg-ssh :
.RS
command="hg-ssh path/to/repo1 /path/to/repo2 ~/repo3 ~user/repo4"
ssh-rsa AA...==
.RE
.PP
The user with the specified key would then be permitted to push and pull to the repositories using the URLs:
.RS
.nf
ssh://example.com/path/to/repo1
ssh://example.com//path/to/repo2
ssh://example.com/~/repo3
ssh://example.com/~user/repo4
.fi
.RE
.SH SEE ALSO
.BR sshd (8),
.BR ssh (1),
.BR hg (1).