Bug 3309 - config lines with hash ('#') chopped unconditionally, openssh 8.5 ssh_config "regression"
Summary: config lines with hash ('#') chopped unconditionally, openssh 8.5 ssh_config ...
Status: CLOSED DUPLICATE of bug 3288
Alias: None
Product: Portable OpenSSH
Classification: Unclassified
Component: ssh (show other bugs)
Version: 8.5p1
Hardware: All All
: P5 normal
Assignee: Assigned to nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-05-07 19:43 AEST by Tomek Orzechowski
Modified: 2022-02-25 13:57 AEDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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