Skip to main content

discover_ssh_hosts

Function discover_ssh_hosts 

Source
pub fn discover_ssh_hosts(home: Option<&Path>) -> Vec<String>
Expand description

Read the concrete Host aliases from ~/.ssh/config.

This is a pure read: setup never runs ssh while discovering. Include directives are deliberately not followed, because resolving them correctly means reimplementing OpenSSH’s glob and relative-path rules; aliases that live in an included file simply are not offered, and the user can still type a host by hand.