{
    "mode": "man",
    "parameter": "hg-ssh",
    "section": "8",
    "url": "https://www.chedong.com/phpMan.php/man/hg-ssh/8/json",
    "generated": "2026-06-15T14:23:58Z",
    "synopsis": "hg-ssh repositories...",
    "sections": {
        "NAME": {
            "content": "hg-ssh - restricted ssh login shell for Mercurial\n",
            "subsections": []
        },
        "SYNOPSIS": {
            "content": "hg-ssh repositories...\n",
            "subsections": []
        },
        "DESCRIPTION": {
            "content": "hg-ssh is a wrapper for ssh access to a limited set of mercurial repos.\n\nTo  be used in ~/.ssh/authorizedkeys with the \"command\" option, see sshd(8): command=\"hg-ssh\npath/to/repo1 /path/to/repo2 ~/repo3 ~user/repo4\" ssh-dss ...  (probably together with  these\nother useful options: no-port-forwarding,no-X11-forwarding,no-agent-forwarding)\n\nThis allows pull/push over ssh from/to the repositories given as arguments.\n\nIf  all  your  repositories  are  subdirectories of a common directory, you can allow shorter\npaths with: command=\"cd path/to/my/repositories && hg-ssh repo1 subdir/repo2\"\n\nYou can use pattern matching  of  your  normal  shell,  e.g.:  command=\"cd  repos  &&  hg-ssh\nuser/thomas/* projects/{mercurial,foo}\"\n\nYou can also add a --read-only flag to allow read-only access to a key, e.g.: command=\"hg-ssh\n--read-only repos/*\"\n",
            "subsections": []
        },
        "BUGS": {
            "content": "Probably lots, please post them to the mailing list (see Resources below) when you find them.\n",
            "subsections": []
        },
        "SEE ALSO": {
            "content": "hg(1)\n",
            "subsections": []
        },
        "AUTHOR": {
            "content": "Thomas Arendsen Hein <thomas@intevation.de>\n\nOrganization: Mercurial\n\n\n\n\nHG-SSH(8)",
            "subsections": []
        },
        "RESOURCES": {
            "content": "Main Web Site: https://mercurial-scm.org/\n\nSource code repository: https://www.mercurial-scm.org/repo/hg\n\nMailing list: https://www.mercurial-scm.org/mailman/listinfo/mercurial/\n",
            "subsections": []
        },
        "COPYING": {
            "content": "Copyright (C) 2005-2016 Olivia Mackall.  Free use of this software is granted under the terms\nof the GNU General Public License version 2 or any later version.\n",
            "subsections": []
        }
    },
    "summary": "hg-ssh - restricted ssh login shell for Mercurial",
    "flags": [],
    "examples": [],
    "see_also": [
        {
            "name": "hg",
            "section": "1",
            "url": "https://www.chedong.com/phpMan.php/man/hg/1/json"
        }
    ]
}