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).