Expand description
SSH message encoding and decoding, with no dependencies.
Re-exports§
pub use codec::DecodeError;pub use codec::Reader;pub use codec::Writer;
Modules§
- codec
- RFC 4251 §5 data types: byte, boolean, uint32, string, mpint and name-list.
- number
- Message numbers (RFC 4250 §4.1, RFC 5656 §7.1).
Structs§
- Channel
Close SSH_MSG_CHANNEL_CLOSE.- Channel
Data SSH_MSG_CHANNEL_DATA.- Channel
Eof SSH_MSG_CHANNEL_EOF.- Channel
Extended Data SSH_MSG_CHANNEL_EXTENDED_DATA;code1 is stderr.- Channel
Failure SSH_MSG_CHANNEL_FAILURE.- Channel
Open SSH_MSG_CHANNEL_OPEN(RFC 4254 §5.1).datais the channel-type-specific part, undecoded.- Channel
Open Confirmation SSH_MSG_CHANNEL_OPEN_CONFIRMATION.datais the channel-type-specific part, undecoded.- Channel
Open Failure SSH_MSG_CHANNEL_OPEN_FAILURE.- Channel
Request SSH_MSG_CHANNEL_REQUEST(RFC 4254 §5.4).datais the request-type-specific part, undecoded.- Channel
Success SSH_MSG_CHANNEL_SUCCESS.- Channel
Window Adjust SSH_MSG_CHANNEL_WINDOW_ADJUST.- Debug
SSH_MSG_DEBUG.- Disconnect
SSH_MSG_DISCONNECT.- ExtInfo
SSH_MSG_EXT_INFO(RFC 8308 §2.3): extension names and their values.- Global
Request SSH_MSG_GLOBAL_REQUEST(RFC 4254 §4).datais the request-specific part, undecoded.- Ignore
SSH_MSG_IGNORE.- KexEcdh
Init SSH_MSG_KEX_ECDH_INIT: the client’s ephemeral public keyQ_C.- KexEcdh
Reply SSH_MSG_KEX_ECDH_REPLY: the server’s host keyK_S, ephemeral public keyQ_Sand the signature over the exchange hash.- KexInit
SSH_MSG_KEXINIT(RFC 4253 §7.1).- Name
- A request name or channel type exactly as sent, which need not be UTF-8. It compares equal
to a
strholding the same bytes, and shows asescape_asciidoes. - NewKeys
SSH_MSG_NEWKEYS.- Ping
SSH2_MSG_PING(OpenSSH PROTOCOL §1.8).- Pong
SSH2_MSG_PONG: the data of theSSH2_MSG_PINGit answers.- Request
Failure SSH_MSG_REQUEST_FAILURE: everything after the number, undecoded.- Request
Success SSH_MSG_REQUEST_SUCCESS: everything after the number, undecoded.- Service
Accept SSH_MSG_SERVICE_ACCEPT.- Service
Request SSH_MSG_SERVICE_REQUEST.- Unimplemented
SSH_MSG_UNIMPLEMENTED: the sequence number of the packet that was not understood.- Userauth
Banner SSH_MSG_USERAUTH_BANNER(RFC 4252 §5.4), its strings kept as sent.- Userauth
Failure SSH_MSG_USERAUTH_FAILURE.- Userauth
Request SSH_MSG_USERAUTH_REQUEST(RFC 4252 §5).method_datais everything after the method name, left undecoded; it can hold a password, soDebugshows only its length.- Userauth
Success SSH_MSG_USERAUTH_SUCCESS.
Enums§
- Message
- A transport message, or the number of one this crate does not decode.