F-i-f / ssh-search-provider

Gnome Shell Extension: Provide SSH search results in Gnome Shell overview
GNU General Public License v3.0
19 stars 4 forks source link

How about parsing /etc/ssh/ssh_config.d/? #4

Open alainwolf opened 3 years ago

alainwolf commented 3 years ago

Would be nice if files found in /etc/ssh/ssh_config.d/*.conf and possibly ~/.ssh/ssh_config.d/*.confwould 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.

F-i-f commented 3 years ago

Thanks for the suggestion.

I'll look into adding that feature.

DanielBoettner commented 9 months ago

I thought about opening a similiar issue. But I do think its better placed here.

I organized some remote hosts in subfolders. Like so

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.