Bug 2341769 - Regression in the openssh parsing of ssh_config files
Summary: Regression in the openssh parsing of ssh_config files
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: openssh
Version: 41
Hardware: x86_64
OS: Linux
medium
high
Target Milestone: ---
Assignee: Dmitry Belyavskiy
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2025-01-23 16:10 UTC by Trond Myklebust
Modified: 2025-01-29 05:03 UTC (History)
7 users (show)

Fixed In Version: openssh-9.9p1-2.fc41
Clone Of:
Environment:
Last Closed: 2025-01-29 05:03:09 UTC
Type: ---
Embargoed:
fedora-admin-xmlrpc: mirror+


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker FC-1412 0 None None None 2025-01-23 16:10:55 UTC

Description Trond Myklebust 2025-01-23 16:10:26 UTC
After the update today to openssh-9.9p1-1.fc41.x86_64 and openssh-clients-0:9.9p1-1.fc41.x86_64, I'm seeing the following messages relating to my ~/.ssh/config file:

Unsupported Match attribute localnetwork=192.168.86.0/24,fe80::/96
/home/<redacted>/.ssh/config line 74: Bad Match condition
Unsupported Match attribute originalhost=dragvoll.trondhjem.org
/home/<redacted>/.ssh/config line 78: Bad Match condition
...
Unsupported Match attribute originalhost=*.local,*.lan,dragvoll
/home/<redacted>/.ssh/config line 98: Bad Match condition
...
/home/<redacted>/.ssh/config line 108: Bad Match condition
/home/<redacted>/.ssh/config: terminating, 13 bad configuration options


Reproducible: Always

Steps to Reproduce:
1.Add the following line to ~/.ssh/config

Match !localnetwork=192.168.86.0/24,fe80::/96 originalhost=dragvoll final
        IdentitiesOnly yes

2. Try to ssh to any destination
Actual Results:  
See above error message.

Expected Results:  
The ssh should have succeeded, and indeed there was no problem with openssh-0:9.8p1-3.fc41.2.x86_64.

Both 'localnetwork' and 'originalhost' are still documented in the ssh_config manpage as being supported attributes for the 'match' condition.

Comment 1 Trond Myklebust 2025-01-23 18:24:52 UTC
Confirm that reverting the openssh packages causes ssh to work correctly for me again.

Comment 2 Dmitry Belyavskiy 2025-01-27 11:03:17 UTC
Looks like it is an upstream issue, I will try to respin

Comment 3 Fedora Update System 2025-01-27 13:29:24 UTC
FEDORA-2025-044249f5ac (openssh-9.9p1-2.fc41) has been submitted as an update to Fedora 41.
https://bodhi.fedoraproject.org/updates/FEDORA-2025-044249f5ac

Comment 4 Dmitry Belyavskiy 2025-01-27 13:30:39 UTC
Could you please test the freshly submitted build?

Comment 5 Trond Myklebust 2025-01-27 21:27:47 UTC
That build appears to work for me without any issues.

Comment 6 Dmitry Belyavskiy 2025-01-27 21:29:27 UTC
Thanks for confirmation! Could you please upvote it?

Comment 7 Fedora Update System 2025-01-28 02:40:46 UTC
FEDORA-2025-044249f5ac has been pushed to the Fedora 41 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2025-044249f5ac`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2025-044249f5ac

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 8 Fedora Update System 2025-01-29 05:03:09 UTC
FEDORA-2025-044249f5ac (openssh-9.9p1-2.fc41) has been pushed to the Fedora 41 stable repository.
If problem still persists, please make note of it in this bug report.


Note You need to log in before you can comment on or make changes to this bug.