twisted.conch.endpoints._CommandTransport(SSHClientTransport) class documentationtwisted.conch.endpoints
View Source
(View In Hierarchy)
_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. |
| Parameters | creator | The _NewConnectionHelper
that created this connection. (type: _NewConnectionHelper.) |
Ask the KnownHostsFile
provider available on the factory which created this protocol this protocol
to verify the given host key.
| Returns | A Deferred
which fires with the result of KnownHostsFile.verifyHostKey. | |
When the connection is secure, start the authentication process.
Set up a connection to the authentication agent and trigger its initialization.
| Parameters | userauth | The _UserAuth
instance which is in charge of the overall authentication process. (type: _UserAuth) |
| endpoint | An endpoint which can be used to connect to the authentication agent. (type: IStreamClientEndpoint
provider) | |
| Returns | A Deferred
which fires when the agent connection is ready for use. | |
When the underlying connection to the SSH server is lost, if there were any connection setup errors, propagate them.