class documentation
class PLinkSSHVendor(SSHVendor):
SSH vendor that shells out to the local 'plink' command.
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):
¶
overrides
dulwich.client.SSHVendor.run_command
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 |