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

Jean-Baptiste Onofré commented on KARAF-3512:
---------------------------------------------

With karaf 2.3.2, I created a test instance with admin:create:
{code}
karaf@root> admin:list
  SSH Port   RMI Ports         State       Pid  Name
[    8101] [1099/44444     ] [Started ] [22628] root
[    8102] [1100/44445     ] [Stopped ] [    0] test
{code}

I changed the etc/org.apache.karaf.shell.cfg of the instance (in 
$KARAF_HOME/instances/test) to use localhost (instead of 0.0.0.0) for sshHost 
and started the instance:
{code}
karaf@root> admin:list
  SSH Port   RMI Ports         State       Pid  Name
[    8101] [1099/44444     ] [Started ] [22628] root
[    8102] [1100/44445     ] [Started ] [10911] test
{code}

It starts without problem, and I have:
{code}
netstat -an|grep 8102
tcp6       0      0 127.0.0.1:8102          :::*                    LISTEN
{code}

I can connect using ssh:
{code}
ssh -p 8102 karaf@localhost
The authenticity of host '[localhost]:8102 ([127.0.0.1]:8102)' can't be 
established.
DSA key fingerprint is 0a:a8:ad:46:20:b1:b0:f8:b9:a5:d7:a1:46:e9:82:b5.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added '[localhost]:8102' (DSA) to the list of known hosts.
karaf@localhost's password:
        __ __                  ____      
       / //_/____ __________ _/ __/      
      / ,<  / __ `/ ___/ __ `/ /_        
     / /| |/ /_/ / /  / /_/ / __/        
    /_/ |_|\__,_/_/   \__,_/_/         

  Apache Karaf (2.3.2)

Hit '<tab>' for a list of available commands
and '[cmd] --help' for help on a specific command.
Hit 'osgi:shutdown' to shutdown Karaf.
Hit '<ctrl-d>' or type 'logout' to disconnect shell from current session.

karaf@test> 

{code}

I don't understand what you mean by Web GUI (you mean the webconsole ?). 

> Modify the sshHost(org.apache.karaf.shell.ssh) is not working in Karaf 2.3.2
> ----------------------------------------------------------------------------
>
>                 Key: KARAF-3512
>                 URL: https://issues.apache.org/jira/browse/KARAF-3512
>             Project: Karaf
>          Issue Type: Bug
>    Affects Versions: 2.3.2
>            Reporter: KG Anand
>            Assignee: Jean-Baptiste Onofré
>
> Karaf version 2.3.2. 
> I want to change the sshHost parameter from 0.0.0.0 to xxx.xxx.xxx.xxx (i.e. 
> Server IP Address). 
> Editing the file,then restart the karaf instance. 
> config:edit org.apache.karaf.shell
> config:propset sshHost 192.168.1.1
> config:update 
> After the Restart, Instance is not coming up.
> Revert the value to "0.0.0.0"  in config file (org.apache.karaf.shell.cfg), 
> then its working fine.
> Now my question is, we can edit the config file and the set the IP address 
> will work in Karaf 2.3.3 Version or not ?
> I found some fixes in your website, Its little related to My question.
> https://issues.apache.org/jira/browse/KARAF-3130
> Existing:
> tcp        0      0 0.0.0.0:8101               0.0.0.0:*                   
> LISTEN
> Expectation : i want to the change the sshHost from "0.0.0.0" to "192.168.1.1"
> tcp        0      0 192.168.1.1:8101               0.0.0.0:*                  
>  LISTEN
> I want to bind my karaf instance to the specific IP Address.
> I have 4 ethernet interfaces, i want to set the karaf instance has to use the 
> particular ethernet.
> Is there any possiblilty to make it possible in Karaf 2.3.2 version itself.
> One more Question is, this sshHost parameter is already available in config 
> file(org.apache.karaf.shell.cfg), then why editing this file with the IP 
> address and restarting the Karaf instance is Not working ?
> Thanks in Advance :)



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

Reply via email to