#[repr(u8)]pub enum MessageType {
Show 29 variants
Disconnect = 1,
Ignore = 2,
Unimplemented = 3,
Debug = 4,
ServiceRequest = 5,
ServiceAccept = 6,
KexInit = 20,
NewKeys = 21,
KexdhInit = 30,
KexdhReply = 31,
UserauthRequest = 50,
UserauthFailure = 51,
UserauthSuccess = 52,
UserauthBanner = 53,
UserauthPkOk = 60,
GlobalRequest = 80,
RequestSuccess = 81,
RequestFailure = 82,
ChannelOpen = 90,
ChannelOpenConfirmation = 91,
ChannelOpenFailure = 92,
ChannelWindowAdjust = 93,
ChannelData = 94,
ChannelExtendedData = 95,
ChannelEof = 96,
ChannelClose = 97,
ChannelRequest = 98,
ChannelSuccess = 99,
ChannelFailure = 100,
}Expand description
SSH message types as defined in RFC 4253 Section 12.
Each message type has a unique numeric identifier used in the binary protocol.
Variants§
Disconnect = 1
Disconnect message - terminates the connection.
Ignore = 2
Ignore message - can be used for padding or keep-alive.
Unimplemented = 3
Unimplemented message - response to unknown message type.
Debug = 4
Debug message - debugging information.
ServiceRequest = 5
Service request - request a service (e.g., “ssh-userauth”).
ServiceAccept = 6
Service accept - service request accepted.
KexInit = 20
Key exchange init - algorithm negotiation.
NewKeys = 21
New keys - signals transition to new keys.
KexdhInit = 30
Diffie-Hellman/ECDH key exchange init (both use same message number). Used for DH group1/group14 and ECDH (Curve25519, nistp256, etc.).
KexdhReply = 31
Diffie-Hellman/ECDH key exchange reply (both use same message number).
UserauthRequest = 50
User authentication request.
UserauthFailure = 51
User authentication failure.
UserauthSuccess = 52
User authentication success.
UserauthBanner = 53
User authentication banner.
UserauthPkOk = 60
Public key OK (server accepts public key for authentication).
GlobalRequest = 80
Global request.
RequestSuccess = 81
Request success.
RequestFailure = 82
Request failure.
ChannelOpen = 90
Channel open.
ChannelOpenConfirmation = 91
Channel open confirmation.
ChannelOpenFailure = 92
Channel open failure.
ChannelWindowAdjust = 93
Channel window adjust.
ChannelData = 94
Channel data.
ChannelExtendedData = 95
Channel extended data (stderr).
ChannelEof = 96
Channel EOF.
ChannelClose = 97
Channel close.
ChannelRequest = 98
Channel request.
ChannelSuccess = 99
Channel success.
ChannelFailure = 100
Channel failure.