[PATCH] Allow matching HostName against Host entries

Ben Lindstrom mouring at offwriting.org
Wed Apr 10 06:06:55 EST 2013


On Apr 9, 2013, at 2:57 PM, Ryan Kavanagh <rak at debian.org> wrote:

> Hi Iain,
> 
> On Tuesday, April  9, 2013 at 12:00:43 -0700, Iain Morgan wrote:
>> As you imply above, this could be addressed by using a consistent scheme
>> for your aliaes.
> 
> That is true, but ignores the fact that this is not always
> possible. Some organisations don't numerically number their hosts and
> instead name them after Greek gods, after composers, or
> arbitrarily. And so one resorts to the consistent scheme of
> "hostname.domain.tld" -> "hostname". For a simple example, consider my
> config file with the patch[0], without the patch[1], and the diff[2].
> 
> As far as I can tell from looking through the patch, it won't break
> any existing configuration files, and will only serve to simplify
> those making use of it.

My major complaint is this one option changes how the ssh_config is
parsed.  It just takes one admin to decided he likes it to break everyone's
setup..

e.g.

host foo
  user  specialaccount
  hostname foo.bar.com

host *.bar.com
   user normaluser


Which is horrible as it *DOES* break it if you enable that switch. 

- Ben


More information about the openssh-unix-dev mailing list