From 1c6397b1cddb288099ed212a5979732698bd72c2 Mon Sep 17 00:00:00 2001 From: Can Celik Date: Tue, 22 Sep 2026 19:12:29 +0300 Subject: fix: reuse ssh authentication and add machine recovery commands (#4490) * fix: reuse ssh authentication and add in-app mfa recovery refs #3763 * refactor: move ssh recovery to machine cli refs #3763 --- src/cli/spec/machine.rs | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'src/cli/spec/machine.rs') diff --git a/src/cli/spec/machine.rs b/src/cli/spec/machine.rs index 188e27b9..82bc4c5d 100644 --- a/src/cli/spec/machine.rs +++ b/src/cli/spec/machine.rs @@ -10,6 +10,17 @@ pub(super) fn command() -> Command { .about("List saved SSH machines") .arg(json_flag()), ) + .subcommand( + Command::new("status") + .about("Check saved machines without prompting for authentication") + .arg(Arg::new("machine").value_name("LABEL_OR_ID")) + .arg(json_flag()), + ) + .subcommand( + Command::new("reconnect") + .about("Authenticate a saved machine in this terminal and verify connectivity") + .arg(Arg::new("machine").value_name("LABEL_OR_ID").required(true)), + ) .subcommand( Command::new("add") .about("Prepare the remote Herdr server and save an SSH machine") -- cgit v1.2.3