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.
This is by design: you can put overrides at the top and defaults at the bottom. From the second paragraph of ssh_config(5): "Since the first obtained value for each parameter is used, more host-specific declarations should be given near the beginning of the file, and general defaults at the end." Sorry, but's worked this way for over a decade and I don't see it changing now, especially given it'll possibly break existing working configs.
Oh dear oh dear, no points at all for my reading comprehension! Sorry for the erroneous report.
Set all RESOLVED bugs to CLOSED with release of OpenSSH 7.1