{
    "content": [
        {
            "type": "text",
            "text": "# ssh_import_id (pydoc)\n\n**Summary:** sshimportid\n\n## Section Outline\n\n- **NAME** (2 lines)\n- **DESCRIPTION** (17 lines)\n- **PACKAGE CONTENTS** (3 lines)\n- **FUNCTIONS** (1 lines) — 17 subsections\n  - assert_parent_dir (2 lines)\n  - cleanup (2 lines)\n  - die (2 lines)\n  - fetch_keys (2 lines)\n  - fetch_keys_gh (1 lines)\n  - fetch_keys_lp (1 lines)\n  - fp_tuple (2 lines)\n  - get_keyfile (2 lines)\n  - import_keys (3 lines)\n  - key_fingerprint (3 lines)\n  - key_list (2 lines)\n  - main (1 lines)\n  - open_output (2 lines)\n  - read_keyfile (2 lines)\n  - remove_keys (2 lines)\n  - user_agent (3 lines)\n  - write_keyfile (2 lines)\n- **DATA** (6 lines)\n- **FILE** (3 lines)\n\n## Full Content\n\n### NAME\n\nsshimportid\n\n### DESCRIPTION\n\n# ssh-import-id - Authorize SSH public keys from trusted online identities\n#\n# Copyright (c) 2013 Casey Marshall <casey.marshall@gmail.com>\n# Copyright (c) 2013 Dustin Kirkland <dustin.kirkland@gmail.com>\n#\n# ssh-import-id is free software: you can redistribute it and/or modify\n# it under the terms of the GNU General Public License as published by\n# the Free Software Foundation, version 3.\n#\n# ssh-import-id is distributed in the hope that it will be useful,\n# but WITHOUT ANY WARRANTY; without even the implied warranty of\n# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n# GNU General Public License for more details.\n#\n# You should have received a copy of the GNU General Public License\n# along with ssh-import-id.  If not, see <http://www.gnu.org/licenses/>.\n\n### PACKAGE CONTENTS\n\nmain\nversion\n\n### FUNCTIONS\n\n#### assert_parent_dir\n\nEnsure that the keyfile parent directory exists\n\n#### cleanup\n\nCleanup tempfiles\n\n#### die\n\nThe only thing in Perl worth keeping\n\n#### fetch_keys\n\nCall out to a subcommand to handle the specified protocol and username\n\n#### fetch_keys_gh\n\n#### fetch_keys_lp\n\n#### fp_tuple\n\nBuild a string that uniquely identifies a key\n\n#### get_keyfile\n\nReturn 'path' if true, else a path to current user's authorizedkeys.\n\n#### import_keys\n\nImport keys from service at 'proto' for 'username', appending to output\nfile\n\n#### key_fingerprint\n\nGet the fingerprint for an SSH public key\nReturns None if not valid key material\n\n#### key_list\n\nReturn a list of uniquely identified keys\n\n#### main\n\n#### open_output\n\nOpen output for writing, supporting either stdout or a filename\n\n#### read_keyfile\n\nLocate key file, read the current state, return lines in a list\n\n#### remove_keys\n\nRemove keys from the output file, if they were inserted by this tool\n\n#### user_agent\n\n\"\nConstruct a useful user agent string\n\n#### write_keyfile\n\nLocate key file, write lines to it\n\n### DATA\n\nDEFAULTPROTO = 'lp'\nDEFAULTTIMEOUT = 15.0\nTEMPFILES = []\nVERSION = '5.11-0ubuntu1'\nparser = ArgumentParser(prog='ssh-import-id', usage=None,...atter'>, c...\n\n### FILE\n\n/usr/lib/python3/dist-packages/sshimportid/init.py\n\n"
        }
    ],
    "structuredContent": {
        "command": "ssh_import_id",
        "section": "",
        "mode": "pydoc",
        "summary": "sshimportid",
        "synopsis": null,
        "tldr_summary": null,
        "tldr_examples": [],
        "tldr_source": null,
        "flags": [],
        "examples": [],
        "see_also": [],
        "section_outline": [
            {
                "name": "NAME",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "DESCRIPTION",
                "lines": 17,
                "subsections": []
            },
            {
                "name": "PACKAGE CONTENTS",
                "lines": 3,
                "subsections": []
            },
            {
                "name": "FUNCTIONS",
                "lines": 1,
                "subsections": [
                    {
                        "name": "assert_parent_dir",
                        "lines": 2
                    },
                    {
                        "name": "cleanup",
                        "lines": 2
                    },
                    {
                        "name": "die",
                        "lines": 2
                    },
                    {
                        "name": "fetch_keys",
                        "lines": 2
                    },
                    {
                        "name": "fetch_keys_gh",
                        "lines": 1
                    },
                    {
                        "name": "fetch_keys_lp",
                        "lines": 1
                    },
                    {
                        "name": "fp_tuple",
                        "lines": 2
                    },
                    {
                        "name": "get_keyfile",
                        "lines": 2
                    },
                    {
                        "name": "import_keys",
                        "lines": 3
                    },
                    {
                        "name": "key_fingerprint",
                        "lines": 3
                    },
                    {
                        "name": "key_list",
                        "lines": 2
                    },
                    {
                        "name": "main",
                        "lines": 1
                    },
                    {
                        "name": "open_output",
                        "lines": 2
                    },
                    {
                        "name": "read_keyfile",
                        "lines": 2
                    },
                    {
                        "name": "remove_keys",
                        "lines": 2
                    },
                    {
                        "name": "user_agent",
                        "lines": 3
                    },
                    {
                        "name": "write_keyfile",
                        "lines": 2
                    }
                ]
            },
            {
                "name": "DATA",
                "lines": 6,
                "subsections": []
            },
            {
                "name": "FILE",
                "lines": 3,
                "subsections": []
            }
        ]
    }
}