pub struct SshConfig {
pub host: String,
pub port: u16,
pub user: String,
pub key_path: Option<String>,
}Expand description
Resolved SSH tunnel configuration.
All fields have their defaults filled in by the merge step in
ferrule-cli, so consumers do not need to handle Options or
env-var lookups when this value reaches the tunnel layer.
Fields§
§host: StringSSH bastion hostname or IP.
port: u16SSH server port. Defaulted to 22 by the merger when omitted.
user: StringSSH login username. Defaulted to $USER by the merger.
key_path: Option<String>Path to the SSH private key. None means resolve through the
key stack (~/.ssh/id_ed25519, ~/.ssh/id_rsa, then
SSH_AUTH_SOCK) at connect time.
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