add /ssh-unlock-disk command

This commit is contained in:
2026-04-16 10:54:19 +03:00
parent 486a596154
commit 27f2c8db49
6 changed files with 1464 additions and 222 deletions

14
src/ssh.rs Normal file
View 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)
}
}