Enum openssh::KnownHosts [−][src]
pub enum KnownHosts { Strict, Add, Accept, }
Expand description
Specifies how the host’s key fingerprint should be handled.
Variants
The host’s fingerprint must match what is in the known hosts file.
If the host is not in the known hosts file, the connection is rejected.
This corresponds to ssh -o StrictHostKeyChecking=yes
.
Strict, but if the host is not already in the known hosts file, it will be added.
This corresponds to ssh -o StrictHostKeyChecking=accept-new
.
Accept whatever key the server provides and add it to the known hosts file.
This corresponds to ssh -o StrictHostKeyChecking=no
.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for KnownHosts
impl Send for KnownHosts
impl Sync for KnownHosts
impl Unpin for KnownHosts
impl UnwindSafe for KnownHosts
Blanket Implementations
Mutably borrows from an owned value. Read more
pub fn vzip(self) -> V