The lowest level SSH protocol. This handles the key negotiation, the encryption and the compression. The transport layer is described in RFC 4253.

Maintainer: Paul Swartz

Class SSHCiphers SSHCiphers represents all the encryption operations that need to occur to encrypt and authenticate the SSH connection.
Class SSHTransportBase Protocol supporting basic SSH functionality: sending/receiving packets and message dispatch. To connect to or run a server, you must use SSHClientTransport or SSHServerTransport.
Class SSHServerTransport SSHServerTransport implements the server side of the SSH protocol.
Class SSHClientTransport SSHClientTransport implements the client side of the SSH protocol.
Variable MSG_DISCONNECT Undocumented
Variable MSG_IGNORE Undocumented
Variable MSG_UNIMPLEMENTED Undocumented
Variable MSG_DEBUG Undocumented
Variable MSG_SERVICE_REQUEST Undocumented
Variable MSG_SERVICE_ACCEPT Undocumented
Variable MSG_KEXINIT Undocumented
Variable MSG_NEWKEYS Undocumented
Variable MSG_KEXDH_INIT Undocumented
Variable MSG_KEXDH_REPLY Undocumented
Variable MSG_KEX_DH_GEX_REQUEST_OLD Undocumented
Variable MSG_KEX_DH_GEX_REQUEST Undocumented
Variable MSG_KEX_DH_GEX_GROUP Undocumented
Variable MSG_KEX_DH_GEX_INIT Undocumented
Variable MSG_KEX_DH_GEX_REPLY Undocumented
Variable DISCONNECT_HOST_NOT_ALLOWED_TO_CONNECT Undocumented
Variable DISCONNECT_PROTOCOL_ERROR Undocumented
Variable DISCONNECT_KEY_EXCHANGE_FAILED Undocumented
Variable DISCONNECT_RESERVED Undocumented
Variable DISCONNECT_MAC_ERROR Undocumented
Variable DISCONNECT_COMPRESSION_ERROR Undocumented
Variable DISCONNECT_SERVICE_NOT_AVAILABLE Undocumented
Variable DISCONNECT_PROTOCOL_VERSION_NOT_SUPPORTED Undocumented
Variable DISCONNECT_HOST_KEY_NOT_VERIFIABLE Undocumented
Variable DISCONNECT_CONNECTION_LOST Undocumented
Variable DISCONNECT_BY_APPLICATION Undocumented
Variable DISCONNECT_TOO_MANY_CONNECTIONS Undocumented
Variable DISCONNECT_AUTH_CANCELLED_BY_USER Undocumented
Variable DISCONNECT_NO_MORE_AUTH_METHODS_AVAILABLE Undocumented
Variable DISCONNECT_ILLEGAL_USER_NAME Undocumented
Variable messages Undocumented
Function _mpFromBytes Make an SSH multiple-precision integer from big-endian bytes.
Class _MACParams _MACParams represents the parameters necessary to compute SSH MAC (Message Authenticate Codes).
Function _getSupportedCiphers Build a list of ciphers that are supported by the backend in use.
Class _NullEncryptionContext An encryption context that does not actually encrypt anything.
Class _DummyAlgorithm An encryption algorithm that does not actually encrypt anything.
Class _DummyCipher A cipher for the none encryption method.
def _mpFromBytes(data): (source)

Make an SSH multiple-precision integer from big-endian bytes.

Used in ECDH key exchange.

ParametersdataThe input data, interpreted as a big-endian octet string. (type: bytes)
ReturnsThe given data encoded as an SSH multiple-precision integer. (type: bytes)
def _getSupportedCiphers(): (source)

Build a list of ciphers that are supported by the backend in use.

Returnsa list of supported ciphers. (type: list of str)
MSG_DISCONNECT =
Undocumented
(type: int)
MSG_IGNORE =
Undocumented
(type: int)
MSG_UNIMPLEMENTED =
Undocumented
(type: int)
MSG_DEBUG =
Undocumented
(type: int)
MSG_SERVICE_REQUEST =
Undocumented
(type: int)
MSG_SERVICE_ACCEPT =
Undocumented
(type: int)
MSG_KEXINIT =
Undocumented
(type: int)
MSG_NEWKEYS =
Undocumented
(type: int)
MSG_KEXDH_INIT =
Undocumented
(type: int)
MSG_KEXDH_REPLY =
Undocumented
(type: int)
MSG_KEX_DH_GEX_REQUEST_OLD =
Undocumented
(type: int)
MSG_KEX_DH_GEX_REQUEST =
Undocumented
(type: int)
MSG_KEX_DH_GEX_GROUP =
Undocumented
(type: int)
MSG_KEX_DH_GEX_INIT =
Undocumented
(type: int)
MSG_KEX_DH_GEX_REPLY =
Undocumented
(type: int)
DISCONNECT_HOST_NOT_ALLOWED_TO_CONNECT =
Undocumented
(type: int)
DISCONNECT_PROTOCOL_ERROR =
Undocumented
(type: int)
DISCONNECT_KEY_EXCHANGE_FAILED =
Undocumented
(type: int)
DISCONNECT_RESERVED =
Undocumented
(type: int)
DISCONNECT_MAC_ERROR =
Undocumented
(type: int)
DISCONNECT_COMPRESSION_ERROR =
Undocumented
(type: int)
DISCONNECT_SERVICE_NOT_AVAILABLE =
Undocumented
(type: int)
DISCONNECT_PROTOCOL_VERSION_NOT_SUPPORTED =
Undocumented
(type: int)
DISCONNECT_HOST_KEY_NOT_VERIFIABLE =
Undocumented
(type: int)
DISCONNECT_CONNECTION_LOST =
Undocumented
(type: int)
DISCONNECT_BY_APPLICATION =
Undocumented
(type: int)
DISCONNECT_TOO_MANY_CONNECTIONS =
Undocumented
(type: int)
DISCONNECT_AUTH_CANCELLED_BY_USER =
Undocumented
(type: int)
DISCONNECT_NO_MORE_AUTH_METHODS_AVAILABLE =
Undocumented
(type: int)
DISCONNECT_ILLEGAL_USER_NAME =
Undocumented
(type: int)
messages =
Undocumented
(type: Dict)
API Documentation for Twisted, generated by pydoctor at 2020-03-20 23:54:06.