[Bug 3739] New: Match parsing requires space before '='

bugzilla-daemon at mindrot.org bugzilla-daemon at mindrot.org
Tue Sep 24 21:40:16 AEST 2024


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

            Bug ID: 3739
           Summary: Match parsing requires space before '='
           Product: Portable OpenSSH
           Version: 9.9p1
          Hardware: amd64
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P5
         Component: ssh
          Assignee: unassigned-bugs at mindrot.org
          Reporter: web-openssh at holm.dev

The man page for 'ssh_config(5)' says:
   Configuration options may be separated by whitespace or optional
whitespace and exactly one ‘=’;

>From that I would expect this configuration to be valid:
  Match host="*.example.com,233.252.*"
          User usbpc

  Match host="*.example.com,!login.example.com" !exec="nc -z -w10 %h
22"
          ProxyJump login.example.com

However with v9.9p1 I get the following error:
  $ ssh -V
  OpenSSH_9.9p1, OpenSSL 3.3.2 3 Sep 2024
  $ ssh srv1.example.com
  Missing Match criteria for host=*.example.com,233.252.*
  /home/username/.ssh/config line 1: Bad Match condition
  Unsupported Match attribute host=*.example.com,!login.example.com
  /home/username/.ssh/config line 4: Bad Match condition
  /home/username/.ssh/config: terminating, 2 bad configuration options

The same configuration worked without a problem with v9.8p1
  $ ssh -V
  OpenSSH_9.8p1, OpenSSL 3.3.2 3 Sep 2024
  $ ssh srv.example.com
  Welcome to [...]

To get my configuration to work with v9.9p1 I need to replace the '='
with either a ' ' or ' =', so
  Match host "*.example.com,233.252.*"
or
  Match host ="*.example.com,233.252.*"
work.

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


More information about the openssh-bugs mailing list