Skip to main content

ssh_keyscan

Function ssh_keyscan 

Source
pub async fn ssh_keyscan(host: &str) -> Result<String, Error>
Expand description

Run ssh-keyscan -H <host> and return the host key lines.

The -H flag hashes hostnames in the output for privacy.

ยงErrors

Returns Error::CommandFailed if the scan fails, or Error::TaskFailed if the background task panics.