diff options
| author | Can Celik <ogulcancelik@gmail.com> | 2026-09-22 19:12:29 +0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-09-22 19:12:29 +0300 |
| commit | 1c6397b1cddb288099ed212a5979732698bd72c2 (patch) | |
| tree | 0574b428903ea1ce106bc7ba36e213c0418aa9f4 /src/platform/mod.rs | |
| parent | 7237703dc59102cf3097e833eb896b314007b548 (diff) | |
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
Diffstat (limited to 'src/platform/mod.rs')
| -rw-r--r-- | src/platform/mod.rs | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/src/platform/mod.rs b/src/platform/mod.rs index 864516da..88f433bf 100644 --- a/src/platform/mod.rs +++ b/src/platform/mod.rs @@ -81,7 +81,9 @@ impl ChildExitReason { } #[cfg(unix)] -pub(crate) use unix_common::{classify_child_exit, poll_fd_readable, read_fd}; +pub(crate) use unix_common::{ + classify_child_exit, poll_fd_readable, read_fd, shared_ssh_control_path, +}; #[cfg(not(any(unix, windows)))] pub(crate) fn classify_child_exit(_status: &portable_pty::ExitStatus) -> ChildExitReason { @@ -712,3 +714,14 @@ mod tests { ); } } + +#[cfg(not(unix))] +pub(crate) fn shared_ssh_control_path( + _namespace: &std::path::Path, + _target: &str, +) -> std::io::Result<std::path::PathBuf> { + Err(std::io::Error::new( + std::io::ErrorKind::Unsupported, + "interactive SSH recovery requires Unix OpenSSH multiplexing", + )) +} |
