_CommandTransport is an SSH client transport which includes a host key verification step before it will proceed to secure the connection.

_CommandTransport also knows how to set up a connection to an authentication agent if it is told where it can connect to one.

Method __init__
Method verifyHostKey Ask the KnownHostsFile provider available on the factory which created this protocol this protocol to verify the given host key.
Method connectionSecure When the connection is secure, start the authentication process.
Method connectionLost When the underlying connection to the SSH server is lost, if there were any connection setup errors, propagate them.
Method _saveHostKeyFailure When host key verification fails, record the reason for the failure in order to fire a Deferred with it later.
Method _connectToAgent Set up a connection to the authentication agent and trigger its initialization.

Inherited from BaseProtocol (via SSHClientTransport, SSHTransportBase, Protocol):

Method makeConnection Make a connection to a transport and a server.

Inherited from BaseProtocol (via SSHClientTransport, SSHTransportBase, Protocol):

Method makeConnection Make a connection to a transport and a server.

Inherited from BaseProtocol (via SSHClientTransport, SSHTransportBase, Protocol):

Method makeConnection Make a connection to a transport and a server.

Inherited from BaseProtocol (via SSHClientTransport, SSHTransportBase, Protocol):

Method makeConnection Make a connection to a transport and a server.
def __init__(self, creator): (source)
ParameterscreatorThe _NewConnectionHelper that created this connection. (type: _NewConnectionHelper.)
def verifyHostKey(self, hostKey, fingerprint): (source)

Ask the KnownHostsFile provider available on the factory which created this protocol this protocol to verify the given host key.

ReturnsA Deferred which fires with the result of KnownHostsFile.verifyHostKey.
def _saveHostKeyFailure(self, reason): (source)

When host key verification fails, record the reason for the failure in order to fire a Deferred with it later.

ParametersreasonThe cause of the host key verification failure. (type: Failure)
Returnsreason (type: Failure)
def connectionSecure(self): (source)

When the connection is secure, start the authentication process.

def _connectToAgent(self, userauth, endpoint): (source)

Set up a connection to the authentication agent and trigger its initialization.

ParametersuserauthThe _UserAuth instance which is in charge of the overall authentication process. (type: _UserAuth)
endpointAn endpoint which can be used to connect to the authentication agent. (type: IStreamClientEndpoint provider)
ReturnsA Deferred which fires when the agent connection is ready for use.
def connectionLost(self, reason): (source)

When the underlying connection to the SSH server is lost, if there were any connection setup errors, propagate them.

API Documentation for Twisted, generated by pydoctor at 2015-09-04 15:29:41.