Bug 3309

Summary: config lines with hash ('#') chopped unconditionally, openssh 8.5 ssh_config "regression"
Product: Portable OpenSSH Reporter: Tomek Orzechowski <tomek.orzechowski>
Component: sshAssignee: Assigned to nobody <unassigned-bugs>
Status: CLOSED DUPLICATE    
Severity: normal CC: djm
Priority: P5    
Version: 8.5p1   
Hardware: All   
OS: All   

Description Tomek Orzechowski 2021-05-07 19:43:09 AEST
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@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
Comment 1 Damien Miller 2021-06-04 13:46:14 AEST

*** This bug has been marked as a duplicate of bug 3288 ***
Comment 2 Damien Miller 2022-02-25 13:57:58 AEDT
closing bugs resolved before openssh-8.9