Skip to main content

batch_options

Function batch_options 

Source
pub fn batch_options(known_hosts: &Path) -> Vec<String>
Expand description

The -o values of an SSH that runs unattended: only the host keys in known_hosts are accepted (a host with none or another is refused, never pinned silently), no prompt, a short connect timeout, and keepalives, so a server that stops answering mid-command ends it in under a minute.