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

          Priority: P5
            Bug ID: 2031
          Assignee: [email protected]
           Summary: ssh config parser ignores host-specific overrides
                    after wildcard.
          Severity: minor
    Classification: Unclassified
                OS: Linux
          Reporter: [email protected]
          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.
_______________________________________________
openssh-bugs mailing list
[email protected]
https://lists.mindrot.org/mailman/listinfo/openssh-bugs

Reply via email to