[Bug 2146] New: Add ability to have a ~/.ssh/config.d directory with smaller configs

bugzilla-daemon at mindrot.org bugzilla-daemon at mindrot.org
Thu Aug 29 06:33:47 EST 2013


https://bugzilla.mindrot.org/show_bug.cgi?id=2146

            Bug ID: 2146
           Summary: Add ability to have a ~/.ssh/config.d directory with
                    smaller configs
           Product: Portable OpenSSH
           Version: 6.2p1
          Hardware: Other
                OS: Linux
            Status: NEW
          Severity: enhancement
          Priority: P5
         Component: ssh
          Assignee: unassigned-bugs at mindrot.org
          Reporter: hugh at davenport.net.nz

I've seen forum posts about doing this as a hack in bash to allow it,
but was wondering whether it would be supported as a core feature. The
use case is like this.

I have several different environments, say
prod/test/work2/work3/home/otherhome, and they all require entries in
~/.ssh/config, but they are independant of each other. I may share
parts of that config, but it would be easier if they were all seperate
files in a directory such as
~/.ssh/config.d/{prod,test,work2,work3,home,otherhome} etc, then I can
just share the individual files.

I understand there may be a problem with ordering, so I would suggest
that the ~/.ssh/config is loaded first, and if there is something in
there (like an include(dir) directive), then loads the config.d (or
other specified directory) in directory listing order.

Does this seem like a reasonable feature, I would be happy to help with
development if it gets the OK from core devs that it is likely to be
integrated.

Cheers,

Hugh

-- 
You are receiving this mail because:
You are watching the assignee of the bug.


More information about the openssh-bugs mailing list