pub fn pin_host_keys(
config_dir: &Path,
dest_token: &str,
hostkeys: &[String],
) -> Result<()>Expand description
Pin the acceptor’s host keys into our private known_hosts, keyed by the EXACT
destination token ssh will use (so the pin is not silently inert). Replaces
any prior pins for that token (host keys can rotate). Each hostkeys entry is
a pubkey line like “ssh-ed25519 AAAA…”.