l.c.s.ParamikoSSHClient(BaseSSHClient) : class documentation

Part of libcloud.compute.ssh View Source View In Hierarchy

A SSH Client powered by Paramiko.
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.
def __init__(self, hostname, port=22, username='root', password=None, key=None, timeout=None): (source)
ParametershostnameHostname or IP address to connect to. (type: str)
portTCP port to communicate on, defaults to 22. (type: int)
usernameUsername to use, defaults to root. (type: str)
passwordPassword to authenticate with. (type: str)
keyPrivate SSH keys to authenticate with. (type: list)
def connect(self): (source)
Connect to the remote node over SSH.
Returnsbool
def put(self, path, contents=None, chmod=None): (source)
Upload a file to the remote node.
ParameterspathFile path on the remote node. (type: str)
contentsFile Contents. (type: str)
chmodchmod file to this after creation. (type: int)
def delete(self, path): (source)
Delete/Unlink a file on the remote node.
ParameterspathFile path on the remote node. (type: str)
def run(self, cmd): (source)
Run a command on a remote node.

@type cmd: C{str}
@keyword cmd: Command to run.

@return C{list} of [stdout, stderr, exit_status]
def close(self): (source)
Shutdown connection to the remote node.
API Documentation for libcloud, generated by pydoctor at 2012-07-15 18:49:10.