You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@mina.apache.org by "Goldstein Lyor (JIRA)" <ji...@apache.org> on 2015/11/15 07:33:12 UTC

[jira] [Assigned] (SSHD-583) ssh_config Host entry should support '!' pattern

     [ https://issues.apache.org/jira/browse/SSHD-583?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Goldstein Lyor reassigned SSHD-583:
-----------------------------------

    Assignee: Goldstein Lyor

> ssh_config Host entry should support '!' pattern
> ------------------------------------------------
>
>                 Key: SSHD-583
>                 URL: https://issues.apache.org/jira/browse/SSHD-583
>             Project: MINA SSHD
>          Issue Type: Improvement
>    Affects Versions: 1.1.0
>         Environment: build
>            Reporter: Alon Bar-Lev
>            Assignee: Goldstein Lyor
>            Priority: Minor
>
> During test I found the following exception:
> ---
> testFileSystem(org.apache.sshd.client.subsystem.sftp.SftpFileSystemTest)  Time elapsed: 1.076 sec  <<< ERROR!
> java.io.IOException: java.lang.IllegalArgumentException: Invalid host pattern char in !10.35.0.71
>         at org.apache.sshd.common.util.ValidateUtils.throwIllegalArgumentException(ValidateUtils.java:138)
>         at org.apache.sshd.common.util.ValidateUtils.checkTrue(ValidateUtils.java:127)
>         at org.apache.sshd.client.config.hosts.HostConfigEntry.toPattern(HostConfigEntry.java:1047)
>         at org.apache.sshd.client.config.hosts.HostConfigEntry.setHost(HostConfigEntry.java:166)
>         at org.apache.sshd.client.config.hosts.HostConfigEntry.duplicateConfiguration(HostConfigEntry.java:1318)
>         at org.apache.sshd.client.config.hosts.HostConfigEntry.updateEntriesList(HostConfigEntry.java:1288)
>         at org.apache.sshd.client.config.hosts.HostConfigEntry.readHostConfigEntries(HostConfigEntry.java:1203)
>         at org.apache.sshd.client.config.hosts.HostConfigEntry.readHostConfigEntries(HostConfigEntry.java:1136)
>         at org.apache.sshd.client.config.hosts.HostConfigEntry.readHostConfigEntries(HostConfigEntry.java:1130)
>         at org.apache.sshd.client.config.hosts.HostConfigEntry.readHostConfigEntries(HostConfigEntry.java:1112)
>         at org.apache.sshd.client.config.hosts.ConfigFileHostEntryResolver.reloadHostConfigEntries(ConfigFileHostEntryResolver.java:99)
> ---
> This is caused by ssh_config entry:
> ---
> Host * !10.35.0.71
> ---
> Using '!' is legal, from ssh_config manual:
> ---
> A pattern entry may be negated by prefixing it with an exclamation mark (‘!’).  If a negated entry is matched, then the Host entry is ignored, regardless of
> whether any other patterns on the line match.  Negated matches are therefore useful to provide exceptions for wildcard matches.
> ---



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)