[Bug 2346] New: sshd -T doesn't write all configuration options in valid format

bugzilla-daemon at mindrot.org bugzilla-daemon at mindrot.org
Fri Jan 30 23:52:11 AEDT 2015


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

            Bug ID: 2346
           Summary: sshd -T doesn't write all configuration options in
                    valid format
           Product: Portable OpenSSH
           Version: 6.7p1
          Hardware: Other
                OS: Linux
            Status: NEW
          Severity: enhancement
          Priority: P5
         Component: sshd
          Assignee: unassigned-bugs at mindrot.org
          Reporter: jjelen at redhat.com

Created attachment 2541
  --> https://bugzilla.mindrot.org/attachment.cgi?id=2541&action=edit
proposed patch

During walk through output of sshd -T in different versions of openssh
in our distributions I came up with some problems that are also
applicable to upstream so I took time to report them here.

Found issues:
 * UsePAM option is written in integer format, instead of yes/no format
 * StreamLocalBindMask is not written
 * AllowAgentForwarding is not written
 * VersionAddendum is written, but even without value which makes it
invalid option when using output again as input sshd_config
 * AuthenticationMethods is written even if it is empty which causes
the same problem like the previous option

These issues can be resolved using attached patch. Comments are
welcomed.



Also in released versions 6.6 and 6.7 is missing this commit, which
could be helpful for others looking for some inconsistency in this
output:
https://anongit.mindrot.org/openssh.git/commit/?id=57d378ec9278ba417a726f615daad67d157de666

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


More information about the openssh-bugs mailing list