pub struct Args {Show 23 fields
pub host: String,
pub port: u16,
pub user: String,
pub password: Option<String>,
pub key: Option<PathBuf>,
pub spool_dir: Option<PathBuf>,
pub su_password: Option<String>,
pub sudo_password: Option<String>,
pub timeout: u64,
pub max_chars: Option<String>,
pub disable_sudo: bool,
pub max_output_tokens: Option<String>,
pub log_level: String,
pub log_file: Option<PathBuf>,
pub log_format: String,
pub log_rotation: String,
pub keepalive_interval: u64,
pub keepalive_max: u64,
pub reconnect_retries: u64,
pub reconnect_backoff_ms: u64,
pub health_probe_timeout_ms: u64,
pub strict_host_key_checking: HostKeyCheckMode,
pub known_hosts: Option<PathBuf>,
}Expand description
SeSSHion CLI arguments
Fields§
§host: StringSSH host to connect to
port: u16SSH port
user: StringSSH username
password: Option<String>SSH password (alternative to key)
key: Option<PathBuf>Path to SSH private key file (alternative to password)
spool_dir: Option<PathBuf>Absolute local directory for background job logs and state
su_password: Option<String>Password for su elevation
sudo_password: Option<String>Password for sudo commands (if different from su_password)
timeout: u64Command execution timeout in milliseconds
max_chars: Option<String>Maximum characters for command length. Use “none”, “0”, or negative value to disable limit. Default: 64000
disable_sudo: boolDisable the sudo_shell and sudo_apply_patch tools
max_output_tokens: Option<String>Maximum output tokens for command execution. Use “none” or “0” to disable limit. Supports “k” suffix (e.g., “16k” for 16000). Default: 16000 (approximately 64KB)
log_level: StringLogging level: trace, debug, info, warn, error
log_file: Option<PathBuf>Log file path (default: stdout only)
log_format: StringLog format: text or json
log_rotation: StringLog rotation strategy: daily, hourly, never
keepalive_interval: u64Keepalive interval in seconds (default: 30) Sends keepalive packets to maintain connection like a human user
keepalive_max: u64Maximum keepalive failures before disconnecting (default: 3) Total idle timeout = keepalive_interval * keepalive_max
reconnect_retries: u64Number of reconnect retries after the initial attempt (default: 3)
reconnect_backoff_ms: u64Base reconnect backoff in milliseconds (default: 250)
health_probe_timeout_ms: u64Health probe timeout in milliseconds for active session checks (default: 1500)
strict_host_key_checking: HostKeyCheckModeSSH host key checking mode: yes, accept-new, or no
known_hosts: Option<PathBuf>Path to known_hosts file (default: OpenSSH user known_hosts)
Trait Implementations§
Source§impl Args for Args
impl Args for Args
Source§fn augment_args<'b>(__clap_app: Command) -> Command
fn augment_args<'b>(__clap_app: Command) -> Command
Source§fn augment_args_for_update<'b>(__clap_app: Command) -> Command
fn augment_args_for_update<'b>(__clap_app: Command) -> Command
Command so it can instantiate self via
FromArgMatches::update_from_arg_matches_mut Read moreSource§impl CommandFactory for Args
impl CommandFactory for Args
Source§impl FromArgMatches for Args
impl FromArgMatches for Args
Source§fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
Source§fn from_arg_matches_mut(
__clap_arg_matches: &mut ArgMatches,
) -> Result<Self, Error>
fn from_arg_matches_mut( __clap_arg_matches: &mut ArgMatches, ) -> Result<Self, Error>
Source§fn update_from_arg_matches(
&mut self,
__clap_arg_matches: &ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches( &mut self, __clap_arg_matches: &ArgMatches, ) -> Result<(), Error>
ArgMatches to self.Source§fn update_from_arg_matches_mut(
&mut self,
__clap_arg_matches: &mut ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches_mut( &mut self, __clap_arg_matches: &mut ArgMatches, ) -> Result<(), Error>
ArgMatches to self.