SSH Disconnect & Channel Codes
SSH defines two sets of numeric reason codes: disconnect codes (RFC 4253 §11.1) sent in SSH_MSG_DISCONNECT, and channel open failure codes (RFC 4254 §5.1) sent in SSH_MSG_CHANNEL_OPEN_FAILURE.
15
Disconnect
4
Channel
Disconnect Reason Codes
Sent in SSH_MSG_DISCONNECT to terminate the connection. Codes 1-15 defined in RFC 4253 §11.1.
Channel Open Failure Codes
Sent in SSH_MSG_CHANNEL_OPEN_FAILURE when a channel request is rejected. Codes 1-4 defined in RFC 4254 §5.1.