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] [Comment Edited] (KARAF-5301) system properties and client config conflict
Date Thu, 10 Aug 2017 09:49:01 GMT

    [ https://issues.apache.org/jira/browse/KARAF-5301?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16121370#comment-16121370
] 

Jean-Baptiste Onofré edited comment on KARAF-5301 at 8/10/17 9:48 AM:
----------------------------------------------------------------------

It's already fixed on:

- master: https://github.com/apache/karaf/blob/master/client/src/main/java/org/apache/karaf/client/ClientConfig.java#L57
- karaf-4.1.x: https://github.com/apache/karaf/blob/karaf-4.1.x/client/src/main/java/org/apache/karaf/client/ClientConfig.java#L64
- karaf-4.0.x: https://github.com/apache/karaf/blob/karaf-4.0.x/client/src/main/java/org/apache/karaf/client/ClientConfig.java#L65

Karaf 3.0.x is now in maintenance, so you will have to upgrade to at least Karaf 4.0.x to
get this improvement.


was (Author: jbonofre):
It's already fixed on:

- master: https://github.com/apache/karaf/blob/master/client/src/main/java/org/apache/karaf/client/ClientConfig.java#L57
- karaf-4.1.x: https://github.com/apache/karaf/blob/karaf-4.1.x/client/src/main/java/org/apache/karaf/client/ClientConfig.java#L64
- karaf-4.0.x: https://github.com/apache/karaf/blob/karaf-4.0.x/client/src/main/java/org/apache/karaf/client/ClientConfig.java#L65

> 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é
>
> 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