pub struct SshOptions {Show 14 fields
pub ssh_path: String,
pub scp_path: String,
pub user: Option<String>,
pub options: Vec<String>,
pub connect_timeout: Option<u32>,
pub strict_host_key_checking: bool,
pub password_auth: bool,
pub identity_file: Option<String>,
pub config_file: Option<String>,
pub control_master: Option<ControlMaster>,
pub control_path: Option<String>,
pub control_persist: Option<String>,
pub proxy_jump: Option<String>,
pub port: Option<u16>,
}Expand description
SSH connection options.
Fields§
§ssh_path: StringPath to the SSH binary.
scp_path: StringPath to the SCP binary.
user: Option<String>SSH user (if different from current user).
options: Vec<String>Custom SSH options (passed as -o key=value).
connect_timeout: Option<u32>Connect timeout in seconds.
strict_host_key_checking: boolWhether to use strict host key checking.
password_auth: boolWhether to enable password authentication.
identity_file: Option<String>Path to SSH identity file (passed as -i).
config_file: Option<String>Path to SSH config file (passed as -F).
control_master: Option<ControlMaster>Enable SSH ControlMaster multiplexing.
control_path: Option<String>Path for ControlMaster socket (passed as -oControlPath=…).
control_persist: Option<String>ControlPersist timeout (e.g. “10m”, “yes”).
proxy_jump: Option<String>SSH ProxyJump host (passed as -J).
port: Option<u16>SSH port (passed as -p).
Implementations§
Source§impl SshOptions
impl SshOptions
Sourcepub fn build_ssh_cmd(&self, node: &str, command: &str) -> String
pub fn build_ssh_cmd(&self, node: &str, command: &str) -> String
Build the SSH command prefix for a given node.
Returns the full SSH command string that will execute command on node.
Trait Implementations§
Source§impl Clone for SshOptions
impl Clone for SshOptions
Source§impl Debug for SshOptions
impl Debug for SshOptions
Auto Trait Implementations§
impl Freeze for SshOptions
impl RefUnwindSafe for SshOptions
impl Send for SshOptions
impl Sync for SshOptions
impl Unpin for SshOptions
impl UnsafeUnpin for SshOptions
impl UnwindSafe for SshOptions
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more