How about parsing /etc/ssh/ssh_config.d/?
alainwolf opened this issue · comments
Would be nice if files found in /etc/ssh/ssh_config.d/*.conf
and possibly ~/.ssh/ssh_config.d/*.conf
would also be parsed.
If you have a lot of hosts with custom SSH ports and also multiple clients to setup, its easier to just drop a separate file in one of the include directory.
Include /etc/ssh/ssh_config.d/*.conf
is set by default in /etc/ssh/ssh_config
in Debian based distributions, like Ubuntu and probably others.
Thank you for your consideration.
Thanks for the suggestion.
I'll look into adding that feature.
I thought about opening a similiar issue. But I do think its better placed here.
I organized some remote hosts in subfolders.
Like so
- ~/.ssh/foo/config
- ~/.ssh/foo/key
- ~./.ssh/foo/key.pub
Where my main ~/.ssh/config
has Includes for these configs.
It's a less automatic approach compared to @alainwolf but also helps to organize.
Having the extensions look for and "parse" these Includes would be very convenient.
Thanks for your work on this extension.