mirror of
https://github.com/sshnet/SSH.NET.git
synced 2026-10-25 02:29:53 +08:00
Wireshark can already helpfully dissect the initial SSH handshake. When given the session keys, it can also dissect the encrypted traffic for inspection/debugging. This adds a helper in Debug mode to write out that information in the format Wireshark requires. Usage is to set `SshNetLoggingConfiguration.WiresharkKeyLogFilePath` before connecting, and supply the same value to Wireshark in Edit -> Preferences -> Protocols -> SSH -> "Key log filename". The description of the format is at https://wiki.wireshark.org/SSH#key-log-format