[Bug 2031] New: ssh config parser ignores host-specific overrides after wildcard.

bugzilla-daemon at mindrot.org bugzilla-daemon at mindrot.org
Thu Aug 9 04:22:04 EST 2012


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

          Priority: P5
            Bug ID: 2031
          Assignee: unassigned-bugs at mindrot.org
           Summary: ssh config parser ignores host-specific overrides
                    after wildcard.
          Severity: minor
    Classification: Unclassified
                OS: Linux
          Reporter: openssh at richardneill.org
          Hardware: amd64
            Status: NEW
           Version: 5.9p1
         Component: ssh
           Product: Portable OpenSSH

My (simplified) .ssh/config file contains:

------
Host *
   [Default opts]
   ForwardX11 yes

Host galaxy
    User root
    ForwardX11 no
------

If I then run "ssh -v galaxy", it correctly shows that it is picking up
the "root" option, but it is failing to pick up the host-specific
override to turn off ForwardX11.

(What I have is a system-wide default to no X11 Forward, a personal
default for X11 forwarding, and a single host which shouldn't do X11
forwarding)


A very careful reading of the man page suggests that this may not,
strictly-speaking, be a bug, but I don't think it's doing what the 
user intends either. In my view, later options should override earlier
options, rather than being ignored. 

P.S. Thanks for your time, and a really useful program.

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


More information about the openssh-bugs mailing list