module documentation
(source)

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 DH_GENERATOR Undocumented
Variable DH_PRIME Undocumented
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)
DH_GENERATOR = (source)

Undocumented

DH_PRIME = (source)

Undocumented

MSG_DISCONNECT = (source)

Undocumented

(type: int)
MSG_IGNORE = (source)

Undocumented

(type: int)
MSG_UNIMPLEMENTED = (source)

Undocumented

(type: int)
MSG_DEBUG = (source)

Undocumented

(type: int)
MSG_SERVICE_REQUEST = (source)

Undocumented

(type: int)
MSG_SERVICE_ACCEPT = (source)

Undocumented

(type: int)
MSG_KEXINIT = (source)

Undocumented

(type: int)
MSG_NEWKEYS = (source)

Undocumented

(type: int)
MSG_KEXDH_INIT = (source)

Undocumented

(type: int)
MSG_KEXDH_REPLY = (source)

Undocumented

(type: int)
MSG_KEX_DH_GEX_REQUEST_OLD = (source)

Undocumented

(type: int)
MSG_KEX_DH_GEX_REQUEST = (source)

Undocumented

(type: int)
MSG_KEX_DH_GEX_GROUP = (source)

Undocumented

(type: int)
MSG_KEX_DH_GEX_INIT = (source)

Undocumented

(type: int)
MSG_KEX_DH_GEX_REPLY = (source)

Undocumented

(type: int)
DISCONNECT_HOST_NOT_ALLOWED_TO_CONNECT = (source)

Undocumented

(type: int)
DISCONNECT_PROTOCOL_ERROR = (source)

Undocumented

(type: int)
DISCONNECT_KEY_EXCHANGE_FAILED = (source)

Undocumented

(type: int)
DISCONNECT_RESERVED = (source)

Undocumented

(type: int)
DISCONNECT_MAC_ERROR = (source)

Undocumented

(type: int)
DISCONNECT_COMPRESSION_ERROR = (source)

Undocumented

(type: int)
DISCONNECT_SERVICE_NOT_AVAILABLE = (source)

Undocumented

(type: int)
DISCONNECT_PROTOCOL_VERSION_NOT_SUPPORTED = (source)

Undocumented

(type: int)
DISCONNECT_HOST_KEY_NOT_VERIFIABLE = (source)

Undocumented

(type: int)
DISCONNECT_CONNECTION_LOST = (source)

Undocumented

(type: int)
DISCONNECT_BY_APPLICATION = (source)

Undocumented

(type: int)
DISCONNECT_TOO_MANY_CONNECTIONS = (source)

Undocumented

(type: int)
DISCONNECT_AUTH_CANCELLED_BY_USER = (source)

Undocumented

(type: int)
DISCONNECT_NO_MORE_AUTH_METHODS_AVAILABLE = (source)

Undocumented

(type: int)
DISCONNECT_ILLEGAL_USER_NAME = (source)

Undocumented

(type: int)
messages = (source)

Undocumented

(type: dict)
API Documentation for Twisted, generated by pydoctor 21.2.0 at 2021-02-28 21:00:42.