Home | Trees | Index | Help |
---|
Package paramiko :: Module util |
|
Classes | |
---|---|
PFilter |
Function Summary | |
---|---|
bit_length(n)
| |
turns a long-int into a normalized byte string (adapted from Crypto.Util.number) | |
format_binary(data,
prefix)
| |
format_binary_line(data)
| |
format_binary_weird(data)
| |
string |
Given a password, passphrase, or other human-source key, scramble it through a secure hash into some keyworthy bytes. |
get_logger(name)
| |
get_thread_id()
| |
turn a string into a hex sequence | |
turns a normalized byte string into a long-int (adapted from Crypto.Util.number) | |
dict(hostname, dict(keytype, PKey ))
|
Read a file of known SSH host keys, in the format used by openssh, and return a compound dict of hostname -> keytype -> PKey . |
send paramiko logs to a logfile, if they're not already going somewhere | |
Return a dict of config options for a given hostname. | |
mod_inverse(x,
m)
| |
object |
Parse a config file of the format used by OpenSSH, and return an object that can be used to make queries to lookup_ssh_host_config . |
safe_string(s)
| |
tb_strings()
| |
turn a hex sequence back into a string |
Function Details |
---|
deflate_long(n, add_sign_padding=True)turns a long-int into a normalized byte string (adapted from Crypto.Util.number) |
generate_key_bytes(hashclass, salt, key, nbytes)Given a password, passphrase, or other human-source key, scramble it through a secure hash into some keyworthy bytes. This specific algorithm is used for encrypting/decrypting private key files.
|
hexify(s)turn a string into a hex sequence |
inflate_long(s, always_positive=False)turns a normalized byte string into a long-int (adapted from Crypto.Util.number) |
load_host_keys(filename)Read a file of known SSH host keys, in the format used by openssh,
and return a compound dict of os.path.expanduser("~/.ssh/known_hosts") .
|
log_to_file(filename, level=10)send paramiko logs to a logfile, if they're not already going somewhere |
lookup_ssh_host_config(hostname, config)Return a dict of config options for a given hostname. The
The host-matching rules of OpenSSH's "port" , not "Port" .
No other processing is done to the keys or values.
|
parse_ssh_config(file_obj)Parse a config file of the format used by OpenSSH, and return an
object that can be used to make queries to
|
unhexify(s)turn a hex sequence back into a string |
Home | Trees | Index | Help |
---|
Generated by Epydoc 2.1 on Sun Dec 4 11:16:48 2005 | http://epydoc.sf.net |