pydoc > ssh_import_id

Help on package ssh_import_id:

NAME
    ssh_import_id

DESCRIPTION
    # ssh-import-id - Authorize SSH public keys from trusted online identities
    #
    # Copyright (c) 2013 Casey Marshall <casey.marshall AT gmail.com>
    # Copyright (c) 2013 Dustin Kirkland <dustin.kirkland AT gmail.com>
    #
    # ssh-import-id is free software: you can redistribute it and/or modify
    # it under the terms of the GNU General Public License as published by
    # the Free Software Foundation, version 3.
    #
    # ssh-import-id is distributed in the hope that it will be useful,
    # but WITHOUT ANY WARRANTY; without even the implied warranty of
    # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    # GNU General Public License for more details.
    #
    # You should have received a copy of the GNU General Public License
    # along with ssh-import-id.  If not, see <http://www.gnu.org/licenses/>.

PACKAGE CONTENTS
    __main__
    version

FUNCTIONS
    assert_parent_dir(keyfile)
        Ensure that the keyfile parent directory exists

    cleanup()
        Cleanup tempfiles

    die(msg)
        The only thing in Perl worth keeping

    fetch_keys(proto, username, useragent)
        Call out to a subcommand to handle the specified protocol and username

    fetch_keys_gh(ghid, useragent)

    fetch_keys_lp(lpid, useragent)

    fetch_keys_lp_team(lpid, useragent)
        Fetch keys for all users in team 'lpid'.
        Walk through the json response objects and recursively read sub-groups.

        Uses public launchpad api described at
           https://launchpad.net/+apidoc/devel.html#team
        devel is used so that 'account_status' attribute can be respected.
           to read https://api.launchpad.net/devel/~TEAM/members

        If group does not exist a KeyError will be raised.

    fp_tuple(fp)
        Build a string that uniquely identifies a key

    get_keyfile(path=None)
        Return 'path' if true, else a path to current user's authorized_keys.

    import_keys(proto, username, useragent)
        Import keys from service at 'proto' for 'username', appending to output
        file

    key_fingerprint(fields)
        Get the fingerprint for an SSH public key
        Returns None if not valid key material

    key_list(keyfile_lines)
        Return a list of uniquely identified keys

    main()

    open_output(name, mode='a+')
        Open output for writing, supporting either stdout or a filename

    read_keyfile()
        Locate key file, read the current state, return lines in a list

    remove_keys(proto, username)
        Remove keys from the output file, if they were inserted by this tool

    user_agent(extra='')
        "
        Construct a useful user agent string

    write_keyfile(keyfile_lines, mode)
        Locate key file, write lines to it

DATA
    DEFAULT_PROTO = 'lp'
    DEFAULT_TIMEOUT = 15.0
    LAUNCHPAD_SSH_KEYS_URL_TMPL = 'https://launchpad.net/~%s/+sshkeys'
    TEMPFILES = []
    VERSION = '5.11-0ubuntu2.24.04.1'
    parser = ArgumentParser(prog='ssh-import-id', usage=None,...atter'>, c...

FILE
    /usr/lib/python3/dist-packages/ssh_import_id/__init__.py


ssh_import_id □✕
NAME DESCRIPTION PACKAGE CONTENTS FUNCTIONS
assert_parent_dir(keyfile) cleanup() die(msg) fetch_keys(proto, username, useragent) fetch_keys_gh(ghid, useragent) fetch_keys_lp(lpid, useragent) fetch_keys_lp_team(lpid, useragent) fp_tuple(fp) get_keyfile(path=None) import_keys(proto, username, useragent) key_fingerprint(fields) key_list(keyfile_lines) main() open_output(name, mode='a+') read_keyfile() remove_keys(proto, username) user_agent(extra='') write_keyfile(keyfile_lines, mode)
DATA FILE

Generated by phpman v4.12.29 · Markdown · JSON Author: Che Dong Under GNU General Public License
2026-12-02 00:49 @216.73.216.10
CrawledBy Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)
Valid XHTML 1.0 Transitional!Valid CSS!

^_top_^