You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(ssh): resolve relative ssh_config Include correctly
As per ssh_config man, "Files without absolute paths are
assumed to be in ~/.ssh if included in a user configuration
file or /etc/ssh if included from the system configuration file."
So relative include base stays the same throughout recursion,
even if the system-wide config is included from user's config.
This commit also optimizes traversing ssh config includes.
Previously each config file was read with separate `sed` command
to extract `Include` directives. This can get quite slow if there are
a lot of included files.
Instead of reading each individual file, we can put all the files
at a current recursion level into a single sed invocation and
extract all the directives in one go.
0 commit comments