[PATCH] Allow matching HostName against Host entries

Ryan Kavanagh rak at debian.org
Fri Apr 12 03:08:18 EST 2013


You would probably meant something along the lines of:

      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'"

      host *
        MatchHostName no # global setting

in your user config, which would make sure that none of your Host
stanzas match a global config in case your sysadmin decides to turn
the flag on. Of course, if you're depending on you sysadmin's global
config for things, and he changes it to require matchhostname, then
you're equally in trouble. But again, anything your sysadmin does can
break your own configs or worse.

Best wishes,
Ryan

-- 
|_)|_/	Ryan Kavanagh		| Debian Developer
| \| \	http://ryanak.ca/	| GPG Key 4A11C97A


More information about the openssh-unix-dev mailing list