SSHConnection constructor
Param: |
|
---|
SSHConnection constructor
Param: |
|
---|
Methods
__init__(hostname, username[, prefix, ...]) | SSHConnection constructor |
log_error(error[, message]) | Logs the error in bold red |
sudo(command, password[, timeout]) | A convenience method to hide what’s needed to run as root |
Attributes
client | an SSHClient instance | ||
logger |
|
Closes the connection and sets SSHClient to None
a secondary interface to allow more arbitrary input
Param: |
|
---|
Logs the error in bold red
Param: |
|
---|
A convenience method to hide what’s needed to run as root
Param: |
|
---|---|
Returns: | InOutError named tuple |
an SSHClient instance
Raise: | ApeError for paramiko and socket exceptions |
---|---|
Return type: | SSHClient |
Returns: | SSH Client with the constructor’s parameters |
A re-entrant lock that threaded users of the connection can use
Returns: | A logging object. |
---|