Skip to main content

Module ssh

Module ssh 

Source
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§

EffectiveHostError
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 -G resolves and prints the configuration without connecting.
parse_effective_hostname
Pull the effective hostname value out of ssh -G output. First usable line wins; the value must still be hostname-shaped, so a corrupt line cannot smuggle text into a URL.