Bug 3400 - Let "~/.ssh/config" be a directory
Summary: Let "~/.ssh/config" be a directory
Status: NEW
Alias: None
Product: Portable OpenSSH
Classification: Unclassified
Component: ssh (show other bugs)
Version: 8.2p1
Hardware: Other Linux
: P5 enhancement
Assignee: Assigned to nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-03-10 04:05 AEDT by Carl Ponder
Modified: 2022-03-10 04:05 AEDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Carl Ponder 2022-03-10 04:05:02 AEDT
Right now I can use include-files in my ~/.ssh/config which allow me to break the file up into more cohesive groupings.
One thing about this, though, is that the actual config-file is just this

include config.d/*

which seems a bit redundant.
Could you just check to see whether the ~/.ssh/config is a file or a directory, and if it's a directory, just use all the files in-order (which corresponds to what config.d/* does)?