Part of libcloud.ssh View Source View In Hierarchy
Method | __init__ | |
Method | connect | Connect to the remote node over SSH. |
Method | put | Upload a file to the remote node. |
Method | delete | Delete/Unlink a file on the remote node. |
Method | run | Run a command on a remote node. |
Method | close | Shutdown connection to the remote node. |
Parameters | hostname | Hostname or IP address to connect to. (type: str ) |
port | TCP port to communicate on, defaults to 22. (type: int ) | |
username | Username to use, defaults to root. (type: str ) | |
password | Password to authenticate with. (type: str ) | |
key | Private SSH keys to authenticate with. (type: list ) |
Parameters | path | File path on the remote node. (type: str ) |
contents | File Contents. (type: str ) | |
chmod | chmod file to this after creation. (type: int ) |
Parameters | path | File path on the remote node. (type: str ) |
Run a command on a remote node. @type cmd: C{str} @keyword cmd: Command to run. @return C{list} of [stdout, stderr, exit_status]