support_kit/hosts/
ssh_connection.rs

1use async_trait::async_trait;
2
3pub struct SshConnection;
4
5// the methods are async w/ async_trait, so that should be imported if you want to use them
6#[async_trait]
7impl russh::client::Handler for SshConnection {
8    type Error = russh::Error;
9    #[tracing::instrument(skip(self, _server_public_key), level = "debug")]
10    async fn check_server_key(
11        &mut self,
12        _server_public_key: &russh::keys::key::PublicKey,
13    ) -> Result<bool, Self::Error> {
14        tracing::trace!("checking server key");
15        Ok(true)
16    }
17}