openhab/openhab-distro#145 Add documentation related to ssh console binding. (#38)

Signed-off-by: Łukasz Dywicki <luke@code-house.org>
pull/39/head
Łukasz Dywicki 2016-06-30 21:16:11 +02:00 committed by Kai Kreuzer
parent 1845c174c2
commit 936b28942b
1 changed files with 12 additions and 1 deletions

View File

@ -15,7 +15,7 @@ The Karaf console offers the option to:
Accessing the Karaf console depends on the start mode of openHAB. The manually start using shell/batch script ends directly in the Karaf console.
If openHAB runs a service, the console can be accessed using ssh to the openHAB host on port 8101. The default Username/Password is **karaf/karaf**.
If openHAB runs a service, the console can be accessed using ssh to the openHAB host on port 8101. The default Username/Password is **openhab/habopen**.
```
ssh karaf@localhost -p 8101
@ -59,4 +59,15 @@ The Karaf session is ended by using the logout command:
openhab> logout
```
By default due to security reasons openhab binds it's shell to localhost. If you are using local network or you are fully aware of all risks of exposing your system to public network you can change bind address in **org.apache.karaf.shell.cfg** config file. It can be found in the **runtime/karaf/etc/** folder (in case openHAB was installed via apt, the full path is: /usr/share/openhab2/runtime/karaf/etc/), replace line:
```
sshHost=127.0.0.1
```
to contain IP address you want to bind or 0.0.0.0 if you would like to bind to all available network interfaces:
```
sshHost=0.0.0.0
```
Please check the [Karaf reference](http://karaf.apache.org/manual/latest/) for details.