...
Code Block |
---|
> java -jar lib/karaf-client.jar osgi:shutdown > |
Warning |
Using an SSH client
You can use any standard SSH client to connect to a Karaf instance. The default port is 8101.
Code Block | ||
---|---|---|
> ssh -p 8101 -l karaf localhost
karaf@localhost's password: karaf
karaf@root:/>
Warning | | |
| ||
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
|
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 | ||
---|---|---|
| ||
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:
...