Functions§
- count_
known_ hosts_ candidates - Count how many importable entries exist in ~/.ssh/known_hosts. Returns the count of parseable hostname entries, or 0 if the file doesn’t exist or can’t be read.
- import_
from_ file - Import hosts from a file with one
[user@]host[:port]per line. Returns (imported, skipped, parse_failures, read_errors). - import_
from_ known_ hosts - Import hosts from ~/.ssh/known_hosts. Returns (imported, skipped, parse_failures, read_errors).