pub struct SshConfig {
pub host: String,
pub port: u16,
pub user: String,
pub auth: SshAuth,
pub host_key: HostKeyPolicy,
pub on_mismatch: Option<MismatchCallback>,
pub keepalive: Option<Duration>,
pub connect_timeout: Duration,
pub agent_forward: bool,
pub env: Vec<(String, String)>,
pub term: String,
pub allocate_pty: bool,
}Expand description
SSH session configuration.
Fields§
§host: String§port: u16§user: String§auth: SshAuth§host_key: HostKeyPolicy§on_mismatch: Option<MismatchCallback>If set, called on host-key mismatch. Without one the connection fails closed.
keepalive: Option<Duration>§connect_timeout: Duration§agent_forward: bool§env: Vec<(String, String)>§term: StringTERM value sent to the server. Default "xterm-256color".
allocate_pty: boolAllocate a PTY (default). Use SshConfig::no_pty for one-shot
exec-channel semantics.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for SshConfig
impl !RefUnwindSafe for SshConfig
impl Send for SshConfig
impl Sync for SshConfig
impl Unpin for SshConfig
impl UnsafeUnpin for SshConfig
impl !UnwindSafe for SshConfig
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