Package starcluster :: Module ssh
[hide private]
[frames] | no frames]

Module ssh

source code

ssh.py Friendly Python SSH2 interface. From http://commandline.org.uk/code/ License: LGPL modified by justin riley (justin.t.riley@gmail.com)

Classes [hide private]
  SSHClient
Establishes an SSH connection to a remote host using either password or private key authentication.
  Connection
Establishes an SSH connection to a remote host using either password or private key authentication.
  SSHGlob
Functions [hide private]
 
insert_char_every_n_chars(string, char='\n', every=64) source code
 
ASN1Sequence(*vals) source code
 
export_rsa_to_pkcs8(params) source code
 
get_private_rsa_fingerprint(key_location)
Returns the fingerprint of a private RSA key as a 59-character string (40 characters separated every 2 characters by a ':').
source code
 
get_public_rsa_fingerprint(pubkey_location) source code
 
test_create_keypair_fingerprint(keypair=None)
TODO: move this to 'live' tests
source code
 
test_import_keypair_fingerprint(keypair)
TODO: move this to 'live' tests
source code
Variables [hide private]
  HAS_TERMIOS = True
  RSA_OID = ObjectIdentifier(1.2.840.113549.1.1.1)
  RSA_PARAMS = ['n', 'e', 'd', 'p', 'q', 'dp', 'dq', 'invq']
  __package__ = 'starcluster'
Function Details [hide private]

get_private_rsa_fingerprint(key_location)

source code 

Returns the fingerprint of a private RSA key as a 59-character string (40 characters separated every 2 characters by a ':'). The fingerprint is computed using a SHA1 digest of the DER encoded RSA private key.