Bug 1163

Summary: new option: --show-config or similar to show configuration state (?)
Product: Portable OpenSSH Reporter: vincent.mcintyre
Component: sshAssignee: Assigned to nobody <unassigned-bugs>
Status: CLOSED FIXED    
Severity: enhancement CC: uwe
Priority: P2    
Version: 4.3p2   
Hardware: Other   
OS: All   

Description vincent.mcintyre 2006-02-25 23:24:23 AEDT
Hi

this is a wishlist bug arising out of a problem I had some months ago.
I was trying to understand how the permissions from multiple Host stanzas accumulated as openssh chugged through the various config files. From the
conversation with Darren Tucker, it sounded like this doesn't exist yet.

It might be useful to have an option to ssh that prints the accumulated configuration from all the inputs (commandline, $HOME/.ssh/config, /etc/ssh/ssh_config, compilation) and exits, rather than trying to connect.
The name of each configuration source would be printed as it was opened.
The output could include any changes to configuration as each source is
parsed, but it would probably be enough just to spit out the final state.

The option could be named like --config-summary or --show-config.
For a short option name, "-O" looks to be free.

Another implemenation path might be to add this to the -vvv output.

Thanks
Vince
Comment 1 Uwe Hermann 2008-08-04 11:33:43 AEST
I think this is fixed as of 5.1, just use "sshd -T" for printing the effective configuration.

Marking as fixed, but please correct me (and reopen the bug) if I'm wrong.
Comment 2 Damien Miller 2009-02-23 13:35:31 AEDT
Close bugs fixed/reviewed for openssh-5.2 release