Trees | Indices | Help |
|
---|
|
Module encapsulating ssh functionality.
|
|||
SshRunner Wrapper for SSH commands. |
|
|||
|
|||
|
|||
|
Imports: os, logging, re, utils, errors, constants, netutils
|
Format paramiko PKey fingerprint.
|
Return the paths of a user's ssh files. The function will return a triplet (priv_key_path, pub_key_path, auth_key_path) that are used for ssh authentication. Currently, the keys used are DSA keys, so this function will return: (~user/.ssh/id_dsa, ~user/.ssh/id_dsa.pub, ~user/.ssh/authorized_keys). If the optional parameter mkdir is True, the ssh directory will be created if it doesn't exist. Regardless of the mkdir parameters, the script will raise an error if ~user/.ssh is not a directory. |
Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0.1 on Thu Oct 27 14:18:49 2011 | http://epydoc.sourceforge.net |