# ssh_import_id - pydoc - phpman

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@gmail.com>>
    # Copyright (c) 2013 Dustin Kirkland <<dustin.kirkland@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
        Ensure that the keyfile parent directory exists

### cleanup
        Cleanup tempfiles

### die
        The only thing in Perl worth keeping

### fetch_keys
        Call out to a subcommand to handle the specified protocol and username

### fetch_keys_gh

### fetch_keys_lp

### fp_tuple
        Build a string that uniquely identifies a key

### get_keyfile
        Return 'path' if true, else a path to current user's authorized_keys.

### import_keys
        Import keys from service at 'proto' for 'username', appending to output
        file

### key_fingerprint
        Get the fingerprint for an SSH public key
        Returns None if not valid key material

### key_list
        Return a list of uniquely identified keys

### main

### open_output
        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
        Remove keys from the output file, if they were inserted by this tool

### user_agent
        "
        Construct a useful user agent string

### write_keyfile
        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


