Skip to main content

Module known_hosts

Module known_hosts 

Source
Expand description

Parser for ~/.ssh/known_hosts files.

Extracts hostnames from known_hosts entries. Handles both plain and hashed hostname formats, as well as bracketed [host]:port entries.

Functionsยง

parse_known_hosts
Parse a known_hosts file and return discovered hosts.
parse_known_hosts_str
Parse known_hosts from a string (for testing).