Skip to main content

ssh_mcp/ssh/
mod.rs

1//! SSH connection management module
2//!
3//! This module provides persistent SSH connection handling with automatic
4//! reconnection, authentication, and session management.
5
6pub mod command;
7pub mod config;
8pub mod connection;
9pub mod elevation;
10pub mod handler;
11pub mod sanitize;
12
13// Re-exports
14pub use command::{CommandOutput, TransferRawOutput, wrap_command_with_timeout};
15pub use config::{HostKeyCheckMode, SshConfig};
16pub use connection::SshConnectionManager;
17pub use elevation::{escape_for_shell, sanitize_password, wrap_sudo_command};
18pub use handler::{
19    KeyCheckOutcome, SshHandler, default_known_hosts_path, remove_known_hosts_entry,
20};
21pub use sanitize::{escape_command_for_shell, escape_for_timeout_wrapper, sanitize_command};