{
    "mode": "pydoc",
    "parameter": "ssh_import_id",
    "section": "",
    "url": "https://www.chedong.com/phpMan.php/pydoc/ssh_import_id/json",
    "generated": "2026-06-02T14:27:05Z",
    "sections": {
        "NAME": {
            "content": "sshimportid\n",
            "subsections": []
        },
        "DESCRIPTION": {
            "content": "# 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",
            "subsections": []
        },
        "PACKAGE CONTENTS": {
            "content": "main\nversion\n",
            "subsections": []
        },
        "FUNCTIONS": {
            "content": "",
            "subsections": [
                {
                    "name": "assert_parent_dir",
                    "content": "Ensure that the keyfile parent directory exists\n"
                },
                {
                    "name": "cleanup",
                    "content": "Cleanup tempfiles\n"
                },
                {
                    "name": "die",
                    "content": "The only thing in Perl worth keeping\n"
                },
                {
                    "name": "fetch_keys",
                    "content": "Call out to a subcommand to handle the specified protocol and username\n"
                },
                {
                    "name": "fetch_keys_gh",
                    "content": ""
                },
                {
                    "name": "fetch_keys_lp",
                    "content": ""
                },
                {
                    "name": "fp_tuple",
                    "content": "Build a string that uniquely identifies a key\n"
                },
                {
                    "name": "get_keyfile",
                    "content": "Return 'path' if true, else a path to current user's authorizedkeys.\n"
                },
                {
                    "name": "import_keys",
                    "content": "Import keys from service at 'proto' for 'username', appending to output\nfile\n"
                },
                {
                    "name": "key_fingerprint",
                    "content": "Get the fingerprint for an SSH public key\nReturns None if not valid key material\n"
                },
                {
                    "name": "key_list",
                    "content": "Return a list of uniquely identified keys\n"
                },
                {
                    "name": "main",
                    "content": ""
                },
                {
                    "name": "open_output",
                    "content": "Open output for writing, supporting either stdout or a filename\n"
                },
                {
                    "name": "read_keyfile",
                    "content": "Locate key file, read the current state, return lines in a list\n"
                },
                {
                    "name": "remove_keys",
                    "content": "Remove keys from the output file, if they were inserted by this tool\n"
                },
                {
                    "name": "user_agent",
                    "content": "\"\nConstruct a useful user agent string\n"
                },
                {
                    "name": "write_keyfile",
                    "content": "Locate key file, write lines to it\n"
                }
            ]
        },
        "DATA": {
            "content": "DEFAULTPROTO = 'lp'\nDEFAULTTIMEOUT = 15.0\nTEMPFILES = []\nVERSION = '5.11-0ubuntu1'\nparser = ArgumentParser(prog='ssh-import-id', usage=None,...atter'>, c...\n",
            "subsections": []
        },
        "FILE": {
            "content": "/usr/lib/python3/dist-packages/sshimportid/init.py\n\n",
            "subsections": []
        }
    },
    "summary": "sshimportid",
    "flags": [],
    "examples": [],
    "see_also": []
}