pub struct SshParams {
pub address: Address,
pub identity: Option<PathBuf>,
pub user: Option<String>,
pub strict_host_key_checking: bool,
}
Expand description
Inputs for an SSH command, excluding the remote command itself.
Fields§
§address: Address
Target address.
identity: Option<PathBuf>
Optional identity path (“-i” option).
user: Option<String>
Target user name.
strict_host_key_checking: bool
If false, skip the known-host check and do not add the target to the known-hosts file. This is useful, for example, with ephemeral VMs.
Setting this to false adds these flags:
- -oStrictHostKeyChecking=no
- -oUserKnownHostsFile=/dev/null
Implementations§
Trait Implementations§
source§impl PartialEq for SshParams
impl PartialEq for SshParams
impl Eq for SshParams
impl StructuralPartialEq for SshParams
Auto Trait Implementations§
impl Freeze for SshParams
impl RefUnwindSafe for SshParams
impl Send for SshParams
impl Sync for SshParams
impl Unpin for SshParams
impl UnwindSafe for SshParams
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