Bug 1163 - new option: --show-config or similar to show configuration state (?)
Summary: new option: --show-config or similar to show configuration state (?)
Status: CLOSED FIXED
Alias: None
Product: Portable OpenSSH
Classification: Unclassified
Component: ssh (show other bugs)
Version: 4.3p2
Hardware: Other All
: P2 enhancement
Assignee: Assigned to nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-02-25 23:24 AEDT by vincent.mcintyre
Modified: 2009-02-23 13:35 AEDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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