ssh
SSH Protocol Codes
Numeric codes used in the SSH transport and connection protocols. Covers disconnect reason codes (RFC 4253 §11.1) sent in SSH_MSG_DISCONNECT messages, and channel open failure reason codes (RFC 4254 §5.1) sent in SSH_MSG_CHANNEL_OPEN_FAILURE messages.
20 codes
references rfc-editor.org/rfc/rfc4253rfc-editor.org/rfc/rfc4254iana.org/assignments/ssh-parameters/ssh-parameters.xhtml
· All codes 20 codes
- SSH_DISCONNECT_AUTH_CANCELLED_BY_USER Auth Cancelled by User The user cancelled the authentication process. Sent when the client determines the user has explicitly abandoned the authentication attempt.
- SSH_DISCONNECT_BY_APPLICATION Disconnected by Application The application requested a clean disconnect. This is the standard reason code for a graceful, intentional closure of the SSH session.
- SSH_DISCONNECT_COMPRESSION_ERROR Compression Error The connection is being terminated because a compression or decompression error occurred, preventing the payload from being processed correctly.
- SSH_DISCONNECT_CONNECTION_LOST Connection Lost The connection was lost unexpectedly. This code is typically sent when the underlying transport experienced an error that caused the session to terminate.
- SSH_DISCONNECT_HOST_KEY_NOT_VERIFIABLE Host Key Not Verifiable The client cannot verify the server's host key, for example because the key is not present in the client's known-hosts store or does not match the stored key.
- SSH_DISCONNECT_HOST_NOT_ALLOWED_TO_CONNECT Host Not Allowed to Connect The server is refusing the connection because the client host is not permitted to connect. This is a policy-based rejection at the transport layer.
- SSH_DISCONNECT_ILLEGAL_USER_NAME Illegal User Name The username supplied by the client is syntactically invalid or is not permitted on this server. The connection is terminated without disclosing whether the user exists.
- SSH_DISCONNECT_KEY_EXCHANGE_FAILED Key Exchange Failed The connection is being terminated because key exchange could not be completed successfully. This may indicate algorithm incompatibility or a failure during the Diffie-Hellman exchange.
- SSH_DISCONNECT_MAC_ERROR MAC Error The connection is being closed because a message authentication code (MAC) check failed, indicating that a received packet was corrupted or tampered with.
- SSH_DISCONNECT_NO_MORE_AUTH_METHODS_AVAILABLE No More Auth Methods Available Authentication has failed and no further authentication methods are available to try. The server closes the connection after all permitted methods have been exhausted.
- SSH_DISCONNECT_PROTOCOL_ERROR Protocol Error The connection is being closed because the remote party sent a message that violated the SSH protocol. The description field of the disconnect message should provide detail.
- SSH_DISCONNECT_PROTOCOL_VERSION_NOT_SUPPORTED Protocol Version Not Supported The SSH protocol version advertised by the client is not supported by the server. Implementations must support SSH-2.0 and may reject older versions.
- SSH_DISCONNECT_RESERVED Reserved Reserved disconnect code. This value is not assigned to a specific condition and must not be used.
- SSH_DISCONNECT_SERVICE_NOT_AVAILABLE Service Not Available The requested service is not available on this server. Sent in response to an SSH_MSG_SERVICE_REQUEST for a service the server does not support.
- SSH_DISCONNECT_TOO_MANY_CONNECTIONS Too Many Connections The server is refusing the connection because it has reached its maximum number of concurrent connections. The client may retry after a delay.
- SSH_EXTENDED_DATA_STDERR Extended Data: Stderr The extended data type indicating that the data in an SSH_MSG_CHANNEL_EXTENDED_DATA message carries stderr output from the remote process.
- SSH_OPEN_ADMINISTRATIVELY_PROHIBITED Administratively Prohibited The channel open request was rejected because the server's administrative policy does not permit this type of channel or the specific resource being requested.
- SSH_OPEN_CONNECT_FAILED Connect Failed The server attempted to establish the connection associated with the channel open request (for example, a TCP forwarding connection) but the attempt failed.
- SSH_OPEN_RESOURCE_SHORTAGE Resource Shortage The server cannot open the channel because it lacks sufficient resources, such as memory or available channel slots, to satisfy the request.
- SSH_OPEN_UNKNOWN_CHANNEL_TYPE Unknown Channel Type The channel type name specified in the SSH_MSG_CHANNEL_OPEN message is not recognised or not supported by the receiving implementation.