diff --git a/src/main.rs b/src/main.rs index 7007228..09f2719 100644 --- a/src/main.rs +++ b/src/main.rs @@ -110,6 +110,13 @@ impl server::Handler for Handler { self.finished(session) } + fn exec_request(mut self, _channel: ChannelId, data: &[u8], session: Session) -> Self::FutureUnit { + writeln!(self.file, "Execute: {}\n", String::from_utf8_lossy(data)) + .unwrap(); + + self.finished(session) + } + fn auth_password(mut self, user: &str, password: &str) -> Self::FutureAuth { writeln!(self.file, "Authenticated as {} with {}\n", user, password) .unwrap();