implement exec_request()

This commit is contained in:
Astro 2022-09-20 00:21:03 +02:00
parent 91d2eb3b51
commit ed9bd4c8dd
1 changed files with 7 additions and 0 deletions

View File

@ -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();