Feature request: FQDN Host match
Ángel González
keisial at gmail.com
Wed Oct 16 06:52:35 EST 2013
On 07/10/13 16:48, Alexander T wrote:
> 'ssh mybox.my.very.long.subdomain.at.example.com'
>
> BUT this becomes problematic when combined with .ssh/config, where I
> would like to specify something like
>
> Host *.subdomain.at.example.com
> User notme
>
> This since the fully qualified domain name is not used when matching
> Host directives, and I'm only saying 'ssh mybox', so the rule will
> never match.
>
> So my question is whether there is some specific reason why FQDN isn't
> used when matching Host-entries. And if not, would you consider a
> patch containing this change?
>
> Best regards,
>
> Alexander T
It's doing it backwards, but you could do:
Host mybox joebox alexbox ...
HostName %h.my.very.long.subdomain.at.example.com
User notme
More information about the openssh-unix-dev
mailing list