Skip to main content

parse_ssh_config

Function parse_ssh_config 

Source
pub fn parse_ssh_config(path: &Path) -> Vec<SshHost>
Expand description

Parse an SSH config file and return discovered hosts.

Skips wildcard-only hosts (e.g., Host *) since they’re defaults, not connectable targets. Handles multi-host lines like Host foo bar by creating separate entries.