class documentation
class SSHVendor(object):
Known subclasses: dulwich.client.PLinkSSHVendor
, dulwich.client.SubprocessSSHVendor
A client side SSH implementation.
Method | run |
Connect to an SSH server. |
def run_command(self, host, command, username=None, port=None, password=None, key_filename=None, ssh_command=None):
¶
overridden in
dulwich.client.PLinkSSHVendor
, dulwich.client.SubprocessSSHVendor
Connect to an SSH server.
Run a command remotely and return a file-like object for interaction with the remote command.
Returns:
Parameters | |
host | Host name |
command | Command to run (as argv array) |
username | Optional ame of user to log in as |
port | Optional SSH port to use |
password | Optional ssh password for login or private key |
key | Optional path to private keyfile |
ssh | Optional SSH command |