Skip to main content

ssh_cli/ssh/
mod.rs

1// SPDX-License-Identifier: MIT OR Apache-2.0
2//! SSH engine via `russh` 0.62.x.
3//!
4//! - `client`: one-shot connection, password/key auth, exec with timeout and abort
5//! - `known_hosts`: TOFU fingerprints under XDG
6//! - `packing`: safe sudo/su packing for one-shot automation
7
8pub mod client;
9pub mod known_hosts;
10pub mod packing;
11
12pub use client::{truncate_utf8, SshClient, ConnectionConfig, ExecutionOutput};
13pub use packing::{
14    append_description, pack_abort_pkill, pack_su, pack_sudo,
15    escape_shell_single_quotes, remote_abort_pattern,
16};