add /ssh-unlock-disk command
This commit is contained in:
14
src/ssh.rs
Normal file
14
src/ssh.rs
Normal file
@@ -0,0 +1,14 @@
|
||||
use russh::client::Handler;
|
||||
|
||||
pub(crate) struct ClientHandler {}
|
||||
|
||||
impl Handler for ClientHandler {
|
||||
type Error = russh::Error;
|
||||
|
||||
async fn check_server_key(
|
||||
&mut self,
|
||||
server_public_key: &russh::keys::ssh_key::PublicKey,
|
||||
) -> Result<bool, Self::Error> {
|
||||
Ok(true)
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user