Skip to main content

Module import

Module import 

Source

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