class documentation
class SSHVendor:
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:
str, command: bytes, username: str | None = None, port: int | None = None, password: str | None = None, key_filename: str | None = None, ssh_command: str | None = None, protocol_version: int | None = None) -> SubprocessWrapper:
ΒΆ
overridden in
dulwich.client.PLinkSSHVendor, dulwich.client.SubprocessSSHVendorConnect to an SSH server.
Run a command remotely and return a file-like object for interaction with the remote command.
| Parameters | |
host:str | Host name |
command:bytes | Command to run (as argv array) |
username:str | None | Optional ame of user to log in as |
port:int | None | Optional SSH port to use |
password:str | None | Optional ssh password for login or private key |
keystr | None | Optional path to private keyfile |
sshstr | None | Optional SSH command |
protocolint | None | Desired Git protocol version. By default the highest mutually supported protocol version will be used. |
| Returns | |
SubprocessWrapper | Undocumented |