[PATCH] Allow matching HostName against Host entries

Ben Lindstrom mouring at eviladmin.org
Wed Apr 17 02:02:25 EST 2013


On Apr 16, 2013, at 10:52 AM, Ryan Kavanagh <rak at debian.org> wrote:

> On Sunday, April 14, 2013 at 16:29:38 +0200, Ángel González wrote:
>> So you would replace hostname above with eg. ‘expandhost’
>> host foo
>> expandhost foo.bar.com
>> 
>> The configuration option expandhost would work just like hostname, but
>> making foo.bar.com match with the following configuration entries.
> 
> I think this is a much cleaner approach than what I proposed; users
> don't need to worry about MatchHostName somehow clobbering their
> config file, it requires setting one option (ExpandHost) as opposed to
> two (HostName & MatchHostName), etc. Seeing that this option had
> support in another subthread, I'll update my patch to use ExpandHost
> instead.
> 
> To those who objected to my initial patch, does this change address
> your concerns?

I have no more objections anymore.

- Ben


More information about the openssh-unix-dev mailing list