Skip to main content

learn_host_key

Function learn_host_key 

Source
pub fn learn_host_key(
    host: &str,
    port: u16,
    pubkey: &PublicKey,
) -> Result<(), TunnelError>
Expand description

Write a host’s public key into ~/.ssh/known_hosts (TOFU).