bugzilla-daemon at mindrot.org
2014-Nov-22  18:58 UTC
[Bug 2320] New: end-of-line comments work in sshd_config but not in ssh_config
https://bugzilla.mindrot.org/show_bug.cgi?id=2320
            Bug ID: 2320
           Summary: end-of-line comments work in sshd_config but not in
                    ssh_config
           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.
Regards,
Philippe
-- 
You are receiving this mail because:
You are watching the assignee of the bug.
bugzilla-daemon at mindrot.org
2014-Dec-23  04:23 UTC
[Bug 2320] end-of-line comments work in sshd_config but not in ssh_config
https://bugzilla.mindrot.org/show_bug.cgi?id=2320
Damien Miller <djm at mindrot.org> changed:
           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |djm at mindrot.org
--- Comment #1 from Damien Miller <djm at mindrot.org> ---
Created attachment 2519
  --> https://bugzilla.mindrot.org/attachment.cgi?id=2519&action=edit
Strip comments from ssh config files
-- 
You are receiving this mail because:
You are watching the assignee of the bug.
You are watching someone on the CC list of the bug.
bugzilla-daemon at mindrot.org
2020-Nov-30  02:38 UTC
[Bug 2320] end-of-line comments work in sshd_config but not in ssh_config
https://bugzilla.mindrot.org/show_bug.cgi?id=2320
Darren Tucker <dtucker at dtucker.net> changed:
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Blocks|                            |3217
                 CC|                            |dtucker at dtucker.net
Referenced Bugs:
https://bugzilla.mindrot.org/show_bug.cgi?id=3217
[Bug 3217] Tracking bug for 8.5 release
-- 
You are receiving this mail because:
You are watching someone on the CC list of the bug.
You are watching the assignee of the bug.
bugzilla-daemon at mindrot.org
2020-Nov-30  02:46 UTC
[Bug 2320] end-of-line comments work in sshd_config but not in ssh_config
https://bugzilla.mindrot.org/show_bug.cgi?id=2320
Darren Tucker <dtucker at dtucker.net> changed:
           What    |Removed                     |Added
----------------------------------------------------------------------------
   Attachment #2519|0                           |1
        is obsolete|                            |
   Attachment #3460|                            |ok?(djm at mindrot.org)
              Flags|                            |
--- Comment #2 from Darren Tucker <dtucker at dtucker.net> ---
Created attachment 3460
  --> https://bugzilla.mindrot.org/attachment.cgi?id=3460&action=edit
Strip comments from ssh config files
Update patch to -current
-- 
You are receiving this mail because:
You are watching someone on the CC list of the bug.
You are watching the assignee of the bug.
bugzilla-daemon at mindrot.org
2020-Nov-30  05:37 UTC
[Bug 2320] end-of-line comments work in sshd_config but not in ssh_config
https://bugzilla.mindrot.org/show_bug.cgi?id=2320
Darren Tucker <dtucker at dtucker.net> changed:
           What    |Removed                     |Added
----------------------------------------------------------------------------
         Resolution|---                         |FIXED
             Status|NEW                         |RESOLVED
--- Comment #3 from Darren Tucker <dtucker at dtucker.net> ---
Patch has been applied and will be in the 8.5 release.  Thanks for the
report.
-- 
You are receiving this mail because:
You are watching someone on the CC list of the bug.
You are watching the assignee of the bug.
bugzilla-daemon at mindrot.org
2021-Mar-03  22:52 UTC
[Bug 2320] end-of-line comments work in sshd_config but not in ssh_config
https://bugzilla.mindrot.org/show_bug.cgi?id=2320
Damien Miller <djm at mindrot.org> changed:
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |CLOSED
--- Comment #4 from Damien Miller <djm at mindrot.org> ---
close bugs that were resolved in OpenSSH 8.5 release cycle
-- 
You are receiving this mail because:
You are watching someone on the CC list of the bug.
You are watching the assignee of the bug.
bugzilla-daemon at mindrot.org
2023-Jan-13  02:27 UTC
[Bug 2320] end-of-line comments work in sshd_config but not in ssh_config
https://bugzilla.mindrot.org/show_bug.cgi?id=2320
Damien Miller <djm at mindrot.org> changed:
           What    |Removed                     |Added
----------------------------------------------------------------------------
   Attachment #3460|ok?(djm at mindrot.org)        |
              Flags|                            |
-- 
You are receiving this mail because:
You are watching the assignee of the bug.
You are watching someone on the CC list of the bug.
Reasonably Related Threads
- sshd_config AllowUsers syntax wrong in documentation
- Patch to change installation of ssh_config and sshd_config
- Problems in slogin.1, sshd_config.5, ssh_config.5
- sshd_config allows multiple AllowUsers lines?
- [PATCH] Basic SCTP support for OpenSSH client and server