90 lines
2.1 KiB
HTML
90 lines
2.1 KiB
HTML
|
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
|
|
<HTML><HEAD><TITLE>Man page of HG-SSH</TITLE>
|
|
</HEAD><BODY>
|
|
<H1>HG-SSH</H1>
|
|
Section: Maintenance Commands (8)<BR>Updated: 2008-01-03<BR><A HREF="#index">Index</A>
|
|
<A HREF="/cgi-bin/man/man2html">Return to Main Contents</A><HR>
|
|
|
|
<A NAME="lbAB"> </A>
|
|
<H2>NAME</H2>
|
|
|
|
hg-ssh - restricted ssh login shell for Mercurial
|
|
<A NAME="lbAC"> </A>
|
|
<H2>SYNOPSIS</H2>
|
|
|
|
<B>hg-ssh</B>
|
|
|
|
<I>repositories</I>...
|
|
|
|
<A NAME="lbAD"> </A>
|
|
<H2>DESCRIPTION</H2>
|
|
|
|
<B>hg-ssh</B>
|
|
|
|
can be used as a restricted shell where access to Mercurial repositories is given over
|
|
<B><A HREF="/cgi-bin/man/man2html?1+ssh">ssh</A></B>(1).
|
|
|
|
It should be specified, together with the paths to the
|
|
<I>repositories</I>
|
|
|
|
the user should be given access to, as a
|
|
<I>command</I>
|
|
|
|
option in an
|
|
<B><A HREF="/cgi-bin/man/man2html?5+authorized_keys">authorized_keys</A></B>(5)
|
|
|
|
file.
|
|
<P>
|
|
|
|
An example
|
|
<I>authorized_keys</I>
|
|
|
|
line using
|
|
<B>hg-ssh</B>:
|
|
|
|
<DL COMPACT><DT id="1"><DD>
|
|
command="hg-ssh path/to/repo1 /path/to/repo2 ~/repo3 ~user/repo4"
|
|
ssh-rsa AA...==
|
|
</DL>
|
|
|
|
<P>
|
|
|
|
The user with the specified key would then be permitted to push and pull to the repositories using the URLs:
|
|
<DL COMPACT><DT id="2"><DD>
|
|
<PRE>
|
|
<A HREF="ssh://example.com/path/to/repo1">ssh://example.com/path/to/repo1</A>
|
|
<A HREF="ssh://example.com//path/to/repo2">ssh://example.com//path/to/repo2</A>
|
|
<A HREF="ssh://example.com/~/repo3">ssh://example.com/~/repo3</A>
|
|
<A HREF="ssh://example.com/~user/repo4">ssh://example.com/~user/repo4</A>
|
|
</PRE>
|
|
|
|
</DL>
|
|
|
|
<A NAME="lbAE"> </A>
|
|
<H2>SEE ALSO</H2>
|
|
|
|
<B><A HREF="/cgi-bin/man/man2html?8+sshd">sshd</A></B>(8),
|
|
|
|
<B><A HREF="/cgi-bin/man/man2html?1+ssh">ssh</A></B>(1),
|
|
|
|
<B><A HREF="/cgi-bin/man/man2html?1+hg">hg</A></B>(1).
|
|
|
|
<P>
|
|
|
|
<HR>
|
|
<A NAME="index"> </A><H2>Index</H2>
|
|
<DL>
|
|
<DT id="3"><A HREF="#lbAB">NAME</A><DD>
|
|
<DT id="4"><A HREF="#lbAC">SYNOPSIS</A><DD>
|
|
<DT id="5"><A HREF="#lbAD">DESCRIPTION</A><DD>
|
|
<DT id="6"><A HREF="#lbAE">SEE ALSO</A><DD>
|
|
</DL>
|
|
<HR>
|
|
This document was created by
|
|
<A HREF="/cgi-bin/man/man2html">man2html</A>,
|
|
using the manual pages.<BR>
|
|
Time: 00:06:12 GMT, March 31, 2021
|
|
</BODY>
|
|
</HTML>
|