| 1 |
<?xml version="1.0" encoding="utf-8"?> |
| 2 |
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> |
| 3 |
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> |
| 4 |
<head> |
| 5 |
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> |
| 6 |
<meta name="generator" content="Docutils 0.21.2: https://docutils.sourceforge.io/" /> |
| 7 |
<meta name="author" content="Thomas Arendsen Hein <thomas@intevation.de>" /> |
| 8 |
<meta name="organization" content="Mercurial" /> |
| 9 |
<title>hg-ssh</title> |
| 10 |
<link rel="stylesheet" href="style.css" type="text/css" /> |
| 11 |
</head> |
| 12 |
<body> |
| 13 |
<div class="document" id="hg-ssh"> |
| 14 |
<span id="hg-ssh-8"></span> |
| 15 |
<h1 class="title">hg-ssh</h1> |
| 16 |
<h2 class="subtitle" id="restricted-ssh-login-shell-for-mercurial">restricted ssh login shell for Mercurial</h2> |
| 17 |
<table class="docinfo" frame="void" rules="none"> |
| 18 |
<col class="docinfo-name" /> |
| 19 |
<col class="docinfo-content" /> |
| 20 |
<tbody valign="top"> |
| 21 |
<tr><th class="docinfo-name">Author:</th> |
| 22 |
<td>Thomas Arendsen Hein <<a class="reference external" href="mailto:thomas@intevation.de">thomas@intevation.de</a>></td></tr> |
| 23 |
<tr><th class="docinfo-name">Organization:</th> |
| 24 |
<td>Mercurial</td></tr> |
| 25 |
<tr class="manual-section field"><th class="docinfo-name">Manual section:</th><td class="field-body">8</td> |
| 26 |
</tr> |
| 27 |
<tr class="manual-group field"><th class="docinfo-name">Manual group:</th><td class="field-body">Mercurial Manual</td> |
| 28 |
</tr> |
| 29 |
</tbody> |
| 30 |
</table> |
| 31 |
<div class="contents htmlonly topic" id="contents"> |
| 32 |
<p class="topic-title"><a class="reference internal" href="#top">Contents</a></p> |
| 33 |
<ul class="simple"> |
| 34 |
<li><a class="reference internal" href="#synopsis" id="toc-entry-1">Synopsis</a></li> |
| 35 |
<li><a class="reference internal" href="#description" id="toc-entry-2">Description</a></li> |
| 36 |
<li><a class="reference internal" href="#bugs" id="toc-entry-3">Bugs</a></li> |
| 37 |
<li><a class="reference internal" href="#see-also" id="toc-entry-4">See Also</a></li> |
| 38 |
<li><a class="reference internal" href="#author" id="toc-entry-5">Author</a></li> |
| 39 |
<li><a class="reference internal" href="#resources" id="toc-entry-6">Resources</a></li> |
| 40 |
<li><a class="reference internal" href="#copying" id="toc-entry-7">Copying</a></li> |
| 41 |
</ul> |
| 42 |
</div> |
| 43 |
<div class="section" id="synopsis"> |
| 44 |
<h1><a class="toc-backref" href="#contents">Synopsis</a></h1> |
| 45 |
<p><strong>hg-ssh</strong> repositories...</p> |
| 46 |
</div> |
| 47 |
<div class="section" id="description"> |
| 48 |
<h1><a class="toc-backref" href="#contents">Description</a></h1> |
| 49 |
<p><strong>hg-ssh</strong> is a wrapper for ssh access to a limited set of mercurial repos.</p> |
| 50 |
<p>To be used in ~/.ssh/authorized_keys with the "command" option, see sshd(8): |
| 51 |
command="hg-ssh path/to/repo1 /path/to/repo2 ~/repo3 ~user/repo4" ssh-dss ... |
| 52 |
(probably together with these other useful options: |
| 53 |
no-port-forwarding,no-X11-forwarding,no-agent-forwarding)</p> |
| 54 |
<p>This allows pull/push over ssh from/to the repositories given as arguments.</p> |
| 55 |
<p>If all your repositories are subdirectories of a common directory, you can |
| 56 |
allow shorter paths with: |
| 57 |
command="cd path/to/my/repositories && hg-ssh repo1 subdir/repo2"</p> |
| 58 |
<p>You can use pattern matching of your normal shell, e.g.: |
| 59 |
command="cd repos && hg-ssh user/thomas/* projects/{mercurial,foo}"</p> |
| 60 |
<p>You can also add a --read-only flag to allow read-only access to a key, e.g.: |
| 61 |
command="hg-ssh --read-only repos/*"</p> |
| 62 |
</div> |
| 63 |
<div class="section" id="bugs"> |
| 64 |
<h1><a class="toc-backref" href="#contents">Bugs</a></h1> |
| 65 |
<p>Probably lots, please post them to the mailing list (see <a class="reference internal" href="#resources">Resources</a> |
| 66 |
below) when you find them.</p> |
| 67 |
</div> |
| 68 |
<div class="section" id="see-also"> |
| 69 |
<h1><a class="toc-backref" href="#contents">See Also</a></h1> |
| 70 |
<p><a class="reference external" href="hg.1.html"><strong>hg</strong>(1)</a></p> |
| 71 |
</div> |
| 72 |
<div class="section" id="author"> |
| 73 |
<h1><a class="toc-backref" href="#contents">Author</a></h1> |
| 74 |
<p>Written by Olivia Mackall <<a class="reference external" href="mailto:olivia@selenic.com">olivia@selenic.com</a>></p> |
| 75 |
</div> |
| 76 |
<div class="section" id="resources"> |
| 77 |
<h1><a class="toc-backref" href="#contents">Resources</a></h1> |
| 78 |
<p>Main Web Site: <a class="reference external" href="https://mercurial-scm.org/">https://mercurial-scm.org/</a></p> |
| 79 |
<p>Source code repository: <a class="reference external" href="https://www.mercurial-scm.org/repo/hg">https://www.mercurial-scm.org/repo/hg</a></p> |
| 80 |
<p>Mailing list: <a class="reference external" href="https://www.mercurial-scm.org/mailman/listinfo/mercurial/">https://www.mercurial-scm.org/mailman/listinfo/mercurial/</a></p> |
| 81 |
</div> |
| 82 |
<div class="section" id="copying"> |
| 83 |
<h1><a class="toc-backref" href="#contents">Copying</a></h1> |
| 84 |
<p>Copyright (C) 2005-2016 Olivia Mackall. |
| 85 |
Free use of this software is granted under the terms of the GNU General |
| 86 |
Public License version 2 or any later version.</p> |
| 87 |
<span class="target" id="common"></span><!-- Common link and substitution definitions. --> |
| 88 |
</div> |
| 89 |
</div> |
| 90 |
</body> |
| 91 |
</html> |