Expand description
SSH (Secure Shell) protocol layer.
Implements parsing for the SSH Binary Packet Protocol (RFC 4253) and the SSH Version Exchange.
§Binary Packet Format
uint32 packet_length
byte padding_length
byte[n1] payload; n1 = packet_length - padding_length - 1
byte[n2] random padding; n2 = padding_length
byte[m] mac (Message Authentication Code - MAC); m = mac_lengthRe-exports§
pub use builder::SshBuilder;
Modules§
Structs§
- SshLayer
- SSH protocol layer view into a packet buffer.
Constants§
- SSH_
BINARY_ HEADER_ LEN - Minimum SSH binary packet header: 4 (
packet_length) + 1 (padding_length). - SSH_
PORT - Standard SSH port.
Statics§
- SSH_
FIELDS - Field names for SSH layer.
Functions§
- is_
ssh_ payload - Check if a TCP payload looks like SSH traffic.