[PATCH] Allow matching HostName against Host entries

Iain Morgan imorgan at nas.nasa.gov
Fri Apr 12 02:37:15 EST 2013


On Thu, Apr 11, 2013 at 00:06:06 -0500, Alan Barrett wrote:
> 
> You could always override with "MatchHostName no", like this:
> 
>      MatchHostName yes # global setting
> 
>      host foo
>        user  specialaccount
>        hostname foo.bar.com
>        MatchHostName no # override for "host foo"
> 
>      host *.bar.com
>        user normaluser
>        SomeOtherSetting "used for 'foo.bar.com', but not used for 'foo'"
> 

The example ignores how ssh(1) parses the config file. Since the first
match is applied, global options as shown above cannot be overridden.

-- 
Iain Morgan


More information about the openssh-unix-dev mailing list