man-pages/man8/hg-ssh.8.html
2021-03-31 01:06:50 +01:00

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">&nbsp;</A>
<H2>NAME</H2>
hg-ssh - restricted ssh login shell for Mercurial
<A NAME="lbAC">&nbsp;</A>
<H2>SYNOPSIS</H2>
<B>hg-ssh</B>
<I>repositories</I>...
<A NAME="lbAD">&nbsp;</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=&quot;hg-ssh path/to/repo1 /path/to/repo2 ~/repo3 ~user/repo4&quot;
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">&nbsp;</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">&nbsp;</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>