{
    "content": [
        {
            "type": "text",
            "text": "# HG-SSH (man)\n\n## NAME\n\nhg-ssh - restricted ssh login shell for Mercurial\n\n## SYNOPSIS\n\nhg-ssh repositories...\n\n## DESCRIPTION\n\nhg-ssh is a wrapper for ssh access to a limited set of mercurial repos.\n\n## Sections\n\n- **NAME**\n- **SYNOPSIS**\n- **DESCRIPTION**\n- **BUGS**\n- **SEE ALSO**\n- **AUTHOR**\n- **RESOURCES**\n- **COPYING**\n\nUse structuredContent.sections for detailed options, examples, and full documentation.\n"
        }
    ],
    "structuredContent": {
        "command": "HG-SSH",
        "section": "",
        "mode": "man",
        "summary": "hg-ssh - restricted ssh login shell for Mercurial",
        "synopsis": "hg-ssh repositories...",
        "tldr_summary": null,
        "tldr_examples": [],
        "tldr_source": null,
        "flags": [],
        "examples": [],
        "see_also": [
            {
                "name": "hg",
                "section": "1",
                "url": "https://www.chedong.com/phpMan.php/man/hg/1/json"
            }
        ],
        "section_outline": [
            {
                "name": "NAME",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "SYNOPSIS",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "DESCRIPTION",
                "lines": 17,
                "subsections": []
            },
            {
                "name": "BUGS",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "SEE ALSO",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "AUTHOR",
                "lines": 8,
                "subsections": []
            },
            {
                "name": "RESOURCES",
                "lines": 6,
                "subsections": []
            },
            {
                "name": "COPYING",
                "lines": 3,
                "subsections": []
            }
        ],
        "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": []
            }
        }
    }
}