[Bug 2320] New: end-of-line comments work in sshd_config but not in ssh_config

bugzilla-daemon at mindrot.org bugzilla-daemon at mindrot.org
Sun Nov 23 05:58:00 EST 2014


            Bug ID: 2320
           Summary: end-of-line comments work in sshd_config but not in
           Product: Portable OpenSSH
           Version: 6.7p1
          Hardware: Other
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P5
         Component: ssh
          Assignee: unassigned-bugs at mindrot.org
          Reporter: philcerf at gmail.com

Dear OpenSSH developers.

I just found out that end-of-line comments, e.g.
AllowUser foo   #bar baz
seem to work in sshd_config, but they don't in ssh_config.
Having them in the later gives some error like:
$ ssh host
/etc/ssh/ssh_config line 23: garbage at end of line; "#bar".

In fact there seems to be code to search for left-over config line
content in both, the parsers for ssh_config and sshd_config, it only
seems to work for the former.

While it would be *very* nice to have end-of-line comments, there may
be a bug hidden somewhere in servconf.c, that end-of-line comments
("the garbage") aren't noted in sshd_config.


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

More information about the openssh-bugs mailing list