class documentation

class SubprocessSSHVendor(SSHVendor):

View In Hierarchy

SSH vendor that shells out to the local 'ssh' command.

Method run_command Connect to an SSH server.
def run_command(self, host, command, username=None, port=None, password=None, key_filename=None, ssh_command=None):

Connect to an SSH server.

Run a command remotely and return a file-like object for interaction with the remote command.

Returns:

Parameters
hostHost name
commandCommand to run (as argv array)
usernameOptional ame of user to log in as
portOptional SSH port to use
passwordOptional ssh password for login or private key
key_filenameOptional path to private keyfile
ssh_commandOptional SSH command