Expand description
OpenSSH effective configuration (0033 finding 1): an SSH alias’s
real hostname is what ssh -G says — Include, wildcard Host
and HostName rules included — not what a partial home-grown
parser guesses from ~/.ssh/config.
Evaluation spawns a process, so it is owned IO-worker work (never
the permalink input/render path); parse_effective_hostname is
the pure half, testable against canned output.
Enums§
- Effective
Host Error - Why effective-host evaluation failed, typed at the boundary the UI reports it. None of these ever carries a guessed hostname.
Functions§
- effective_
host - The alias’s effective hostname per OpenSSH’s full configuration.
ssh -Gresolves and prints the configuration without connecting. - parse_
effective_ hostname - Pull the effective
hostnamevalue out ofssh -Goutput. First usable line wins; the value must still be hostname-shaped, so a corrupt line cannot smuggle text into a URL.