b.t.s.SSHVendor(object) : class documentation

Part of bzrlib.transport.ssh View In Hierarchy

Known subclasses: bzrlib.transport.ssh.LoopbackVendor, bzrlib.transport.ssh.ParamikoVendor, bzrlib.transport.ssh.SubprocessVendor

Abstract base class for SSH vendor implementations.
Method connect_sftp Make an SSH connection, and return an SFTPClient.
Method connect_ssh Make an SSH connection.
Method _raise_connection_error Raise a SocketConnectionError with properly formatted host.
def connect_sftp(self, username, password, host, port):
Make an SSH connection, and return an SFTPClient.
Parametersusernamean ascii string
passwordan ascii string
hosta host name as an ascii string
porta port number (type: int)
Returns (type: paramiko.sftp_client.SFTPClient)
RaisesConnectionError if it cannot connect.
def connect_ssh(self, username, password, host, port, command):
Make an SSH connection.
Returnsan SSHConnection.
def _raise_connection_error(self, host, port=None, orig_error=None, msg='Unable to connect to SSH host'):
Raise a SocketConnectionError with properly formatted host.

This just unifies all the locations that try to raise ConnectionError, so that they format things properly.

API Documentation for Bazaar, generated by pydoctor at 2019-11-20 00:36:28.