...
Panel | |||||
---|---|---|---|---|---|
| |||||
|
...
Panel | |||||
---|---|---|---|---|---|
| |||||
| |||||
Warning | |||||
Sending direct commands from the client |
The client jar
...
also supports passing command line arguments to the remote Karaf.
Code Block |
---|
> echo osgi/shutdown > command.txt
> java -jar lib/ servicemixkaraf-client.jar< command.txt osgi:shutdown > |
Warning | |||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Using an SSH clientYou 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.
|
...
Code Block |
---|
remote rsh tcp://localhost:8101/ -u smxkaraf -p smxkaraf |
You can also do that in a single command line from the prompt by appending the previous ServiceMix command to the shell command:
Code Block |
---|
bin/karaf client remote rsh tcp://localhost:8101/ -u smxkaraf -p smxkaraf |
To verify that your are connected to the remote Kernel, run the following command:
...
Code Block |
---|
startLocalConsole=${karaf.startLocalConsole} startRemoteShell=${karaf.startRemoteShell} sshPort=8101 sshRealm=servicemixkaraf hostKey=${karaf.base}/etc/host.key |
...
The security realm used by the console when authenticating remote users is named servicemix
karaf
, so you can override this realm as explained in the security section.
...