Re: Match directive can't recognize capital letters

[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

 



Hi, Michael.

>> There seems to be an issue when using `Match` and `Hostname`
>> directives including capital letters.
> I don't know where you are, but, on the internet, hostnames aren't
case sensitive.

Sorry, it's my mistake. I'm concerned about `Match` and `Host` directives.
Furthermore, example code was inappropriate. Revised version is here:

# (1)
#
#    Match host remotehost
#        User alice
#    Host remotehost
#        User bob
#        Hostname remotehost.example.com
#
ssh remotehost
#=> Apply "User alice"

# (2)
#
#    Match host RemoteHost
#        User alice
#    Host RemoteHost
#        User bob
#        Hostname remotehost.example.com
#

ssh RemoteHost
# => Apply "User bob"


> Which, is to say, that what you're asking for appears to be ambiguous
to me.  SSH should probably stop on the first match in the file though
is what you're asking for?

yes. (2) is unexpected behavior for me.

On Fri, May 9, 2014 at 12:28 AM, Michael Loftis <mloftis@xxxxxxxxx> wrote:
> On Thu, May 8, 2014 at 8:26 AM, Michael Loftis <mloftis@xxxxxxxxx> wrote:
>> On Thu, May 8, 2014 at 5:17 AM, f440 <freq440@xxxxxxxxx> wrote:
>>> Hi,
>>>
>>> There seems to be an issue when using `Match` and `Hostname`
>>> directives including capital letters.
>>
>> I don't know where you are, but, on the internet, hostnames aren't
>> case sensitive.
>
> Which, is to say, that what you're asking for appears to be ambiguous
> to me.  SSH should probably stop on the first match in the file though
> is what you're asking for?
_______________________________________________
openssh-unix-dev mailing list
openssh-unix-dev@xxxxxxxxxxx
https://lists.mindrot.org/mailman/listinfo/openssh-unix-dev




[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux