ssh_import_id - pydoc - phpman

Look up a command

 

Markdown Format | JSON API | MCP Server Tool


ssh_import_id
NAME DESCRIPTION PACKAGE CONTENTS FUNCTIONS DATA FILE
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)

    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
    TEMPFILES = []
    VERSION = '5.11-0ubuntu1'
    parser = ArgumentParser(prog='ssh-import-id', usage=None,...atter'>, c...

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



Generated by phpMan Author: Che Dong Under GNU General Public License
2026-06-02 05:15 @216.73.216.198 CrawledBy Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)
Valid XHTML 1.0 TransitionalValid CSS!

^_back to top