karaf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jean-Baptiste Onofré (JIRA) <j...@apache.org>
Subject [jira] [Updated] (KARAF-5301) system properties and client config conflict
Date Thu, 10 Aug 2017 09:36:00 GMT

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

Jean-Baptiste Onofré updated KARAF-5301:
----------------------------------------
    Fix Version/s: 4.1.3
                   4.0.10
                   4.2.0
                   3.0.9

> system properties and client config conflict
> --------------------------------------------
>
>                 Key: KARAF-5301
>                 URL: https://issues.apache.org/jira/browse/KARAF-5301
>             Project: Karaf
>          Issue Type: Bug
>          Components: karaf-shell
>    Affects Versions: 3.0.6
>            Reporter: Terrien Jean-Yves
>            Assignee: Jean-Baptiste Onofré
>             Fix For: 3.0.9, 4.2.0, 4.0.10, 4.1.3
>
>
> If you want to open the ssh port for all the IP addresses of the machine, you must put
{{0.0.0.0}} in the {{sshHost}} variable.
> In this case it is impossible to connect with the client, which also uses {{0.0.0.0}}:
> {code}
> bin/client
> ...
> org.apache.sshd.common.util.SecurityUtils - BouncyCastle not registered, using the default
JCE provider
> DEBUG org.apache.sshd.common.io.nio2.Nio2Connector - Connecting to 0.0.0.0:8101
> {code}
> if you put {{localhost}} in the {{sshHost}} variable. the ssh port is only open for {{localhost}}.
> You can not open a remote connection but only from localhost.
> If you put any DNS name, our IP of the machine you can not open connection using client
(except using command line parameters).
> I suggest adding a default substitution in the case of {{0.0.0.0}} in {{org.apache.karaf.client.ClientConfig:49}}:
> {code}
> if ("0.0.0.0".equals(this.host)) {
>   this.host = "localhost" 
> }
> {code}
> like this you can open the ssh port to any addresses of the machine and simply use {{bin/client}}
to connect.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Mime
View raw message