[Bug 3309] New: config lines with hash ('#') chopped unconditionally, openssh 8.5 ssh_config "regression"

bugzilla-daemon at mindrot.org bugzilla-daemon at mindrot.org
Fri May 7 19:43:09 AEST 2021


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

            Bug ID: 3309
           Summary: config lines with hash ('#') chopped unconditionally,
                    openssh 8.5 ssh_config "regression"
           Product: Portable OpenSSH
           Version: 8.5p1
          Hardware: All
                OS: All
            Status: NEW
          Severity: normal
          Priority: P5
         Component: ssh
          Assignee: unassigned-bugs at mindrot.org
          Reporter: tomek.orzechowski at gmail.com

I've just upgraded Fedora 33 to Fedora 34, and along with this openssh
8.4 to openssh 8.5
And some of ssh config stopped working.

My case:
[torzechowski at fedora ~]$ grep '#' -i .ssh/config | tail -1
User torzechowski#10.2.128.32

Intended username to pass to server is "torzechowski#10.2.128.32", but
due to fix was made it's shortened to "torzechowski".

(hash is used by PIM/PAM system as delimiter)

For me it's a regression. And looking at the code I see no way for
workaround - no quoting or escaping, because config line is simply
chopped at hash sign.

Currently I have to pass login in command line, so
read_config_file_depth() will not interfere.

Related: bz#2320
https://github.com/openssh/openssh-portable/commit/2bcbf679de838bb77a8bd7fa18e100df471a679c

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


More information about the openssh-bugs mailing list