Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
> java -jar lib/karaf-client.jar osgi:shutdown
>
Warning

#top

Using an SSH client

You can use any standard SSH client to connect to a Karaf instance. The default port is 8101.

Some SSH clients will prompt some harmless warnings when connecting to ServiceMix Kernel.
In particular, openssh 5.1p1 will display the following output:

code
Code Block

> ssh -p 8101 -l karaf localhost
karaf@localhost's password: karaf
karaf@root:/>
Warning
titleError messages when using some ssh clients

channel_by_id: 1: bad id: channel free
channel_input_success_failure: 1: unknown
channel_by_id: 1: bad id: channel free
channel_input_success_failure: 1: unknown

#top

Using another

...

Karaf instance

First, open a terminal and launch Karaf in server mode (you could use a Karaf instance in console mode too):

...

Code Block
bin/karaf client
Tip
titleUser another Kernel Karaf instance to start the client

At this point in time, you can not use the same Karaf installation to start both the server and the client, so you need to create a new instance using the 'admin create xxx' command and use that one to start the client. If you are on a different host or already use another copy of Karaf, this requirement does not hold.

...

To verify that your are connected to the remote Kernelinstance, run the following command:

...