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 SSHClientTransport SSHClientTransport implements the client side of the SSH protocol.
Class SSHServerTransport SSHServerTransport implements the server side of the SSH protocol.
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.
Variable DH_GENERATOR Undocumented
Variable DH_PRIME Undocumented
Variable DISCONNECT_AUTH_CANCELLED_BY_USER Undocumented
Variable DISCONNECT_BY_APPLICATION Undocumented
Variable DISCONNECT_COMPRESSION_ERROR Undocumented
Variable DISCONNECT_CONNECTION_LOST Undocumented
Variable DISCONNECT_HOST_KEY_NOT_VERIFIABLE Undocumented
Variable DISCONNECT_HOST_NOT_ALLOWED_TO_CONNECT Undocumented
Variable DISCONNECT_ILLEGAL_USER_NAME Undocumented
Variable DISCONNECT_KEY_EXCHANGE_FAILED Undocumented
Variable DISCONNECT_MAC_ERROR Undocumented
Variable DISCONNECT_NO_MORE_AUTH_METHODS_AVAILABLE Undocumented
Variable DISCONNECT_PROTOCOL_ERROR Undocumented
Variable DISCONNECT_PROTOCOL_VERSION_NOT_SUPPORTED Undocumented
Variable DISCONNECT_RESERVED Undocumented
Variable DISCONNECT_SERVICE_NOT_AVAILABLE Undocumented
Variable DISCONNECT_TOO_MANY_CONNECTIONS Undocumented
Variable messages Undocumented
Variable MSG_DEBUG Undocumented
Variable MSG_DISCONNECT Undocumented
Variable MSG_EXT_INFO Undocumented
Variable MSG_IGNORE Undocumented
Variable MSG_KEX_DH_GEX_GROUP Undocumented
Variable MSG_KEX_DH_GEX_INIT Undocumented
Variable MSG_KEX_DH_GEX_REPLY Undocumented
Variable MSG_KEX_DH_GEX_REQUEST Undocumented
Variable MSG_KEX_DH_GEX_REQUEST_OLD Undocumented
Variable MSG_KEXDH_INIT Undocumented
Variable MSG_KEXDH_REPLY Undocumented
Variable MSG_KEXINIT Undocumented
Variable MSG_NEWKEYS Undocumented
Variable MSG_SERVICE_ACCEPT Undocumented
Variable MSG_SERVICE_REQUEST Undocumented
Variable MSG_UNIMPLEMENTED Undocumented
Class _DummyAlgorithm An encryption algorithm that does not actually encrypt anything.
Class _DummyCipher A cipher for the none encryption method.
Class _MACParams _MACParams represents the parameters necessary to compute SSH MAC (Message Authenticate Codes).
Class _NullEncryptionContext An encryption context that does not actually encrypt anything.
Function _getSupportedCiphers Build a list of ciphers that are supported by the backend in use.
Function _mpFromBytes Make an SSH multiple-precision integer from big-endian bytes.
DH_GENERATOR = (source)

Undocumented

DH_PRIME = (source)

Undocumented

DISCONNECT_AUTH_CANCELLED_BY_USER: int = (source)

Undocumented

DISCONNECT_BY_APPLICATION: int = (source)

Undocumented

DISCONNECT_COMPRESSION_ERROR: int = (source)

Undocumented

DISCONNECT_CONNECTION_LOST: int = (source)

Undocumented

DISCONNECT_HOST_KEY_NOT_VERIFIABLE: int = (source)

Undocumented

DISCONNECT_HOST_NOT_ALLOWED_TO_CONNECT: int = (source)

Undocumented

DISCONNECT_ILLEGAL_USER_NAME: int = (source)

Undocumented

DISCONNECT_KEY_EXCHANGE_FAILED: int = (source)

Undocumented

DISCONNECT_MAC_ERROR: int = (source)

Undocumented

DISCONNECT_NO_MORE_AUTH_METHODS_AVAILABLE: int = (source)

Undocumented

DISCONNECT_PROTOCOL_ERROR: int = (source)

Undocumented

DISCONNECT_PROTOCOL_VERSION_NOT_SUPPORTED: int = (source)

Undocumented

DISCONNECT_RESERVED: int = (source)

Undocumented

DISCONNECT_SERVICE_NOT_AVAILABLE: int = (source)

Undocumented

DISCONNECT_TOO_MANY_CONNECTIONS: int = (source)

Undocumented

messages: dict = (source)

Undocumented

MSG_DEBUG: int = (source)

Undocumented

MSG_DISCONNECT: int = (source)

Undocumented

MSG_EXT_INFO: int = (source)

Undocumented

MSG_IGNORE: int = (source)

Undocumented

MSG_KEX_DH_GEX_GROUP: int = (source)

Undocumented

MSG_KEX_DH_GEX_INIT: int = (source)

Undocumented

MSG_KEX_DH_GEX_REPLY: int = (source)

Undocumented

MSG_KEX_DH_GEX_REQUEST: int = (source)

Undocumented

MSG_KEX_DH_GEX_REQUEST_OLD: int = (source)

Undocumented

MSG_KEXDH_INIT: int = (source)

Undocumented

MSG_KEXDH_REPLY: int = (source)

Undocumented

MSG_KEXINIT: int = (source)

Undocumented

MSG_NEWKEYS: int = (source)

Undocumented

MSG_SERVICE_ACCEPT: int = (source)

Undocumented

MSG_SERVICE_REQUEST: int = (source)

Undocumented

MSG_UNIMPLEMENTED: int = (source)

Undocumented

def _getSupportedCiphers(): (source)
Build a list of ciphers that are supported by the backend in use.
Returns
list of stra list of supported ciphers.
def _mpFromBytes(data): (source)

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

Used in ECDH key exchange.

Parameters
data:bytesThe input data, interpreted as a big-endian octet string.
Returns
bytesThe given data encoded as an SSH multiple-precision integer.