From 3cde42f32cc9c0c0fa5e8210d959ddd4af13fc5b Mon Sep 17 00:00:00 2001 From: Noratrieb <48135649+Noratrieb@users.noreply.github.com> Date: Mon, 12 Aug 2024 23:40:22 +0200 Subject: [PATCH] log client identifier --- ssh-transport/src/lib.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ssh-transport/src/lib.rs b/ssh-transport/src/lib.rs index 3bb078f..0f0957b 100644 --- a/ssh-transport/src/lib.rs +++ b/ssh-transport/src/lib.rs @@ -131,6 +131,8 @@ impl ServerConnection { // TODO: care that its SSH 2.0 instead of anythin anything else // The client will not send any more information than this until we respond, so discord the rest of the bytes. let client_identification = received.to_owned(); + let client_ident_string = String::from_utf8_lossy(&client_identification); + debug!(identification = %client_ident_string, "Client identifier"); self.packet_transport.queue_send_protocol_info(); self.state = ServerState::KeyExchangeInit { client_identification,