Skip to main content

Module ssh_config

Module ssh_config 

Source
Expand description

The hosts the user’s ~/.ssh/config names, for the connection picker (P2 of SPEC_REMOTE_TERMINALS_AND_DURABLE_SESSIONS_2026_10_02.md).

Only names are read, never anything else in the file: a Host alias that is a plain name (no *, ? or ! pattern) is a connection the user can open, and ssh itself resolves everything about it. Include is followed as ssh does, relative to ~/.ssh, with a * in the last part of the path (Include config.d/*), the common form.

Functions§

hosts
The plain Host names in the user’s ssh config, sorted, each once.
hosts_in
hosts for a given config file, with Include relative to ssh_dir.