2017-02-21 09:50:29.769 [WARN ] [org.apache.karaf.shell.ssh.Activator] - Exception caught while starting SSH server
java.net.BindException: Address already in use
on my Synology NAS. Nevertheless OH2 seems to be running fine. I could ignore this excepetion but I am curious to know why OH would try to start his own SSH server. There is already an SSH server running on my Syno NAS.
Is it possible to prevent OH from doing this and to get rid of this exception?
Oh2 does start is own SSH server for access to the karaf console, but it starts it on a non standard port (8101 I think). This server is set up to only accept connections from local host.
I don’t know if there is a way to change this port but I would be more concerned with what other service you have running that is using that port and making sure it anyways starts before oh does. Otherwise that service will fail with a bind error.
For Docker you can look into the docker postings on this forum for “macvlan” for a way to run the OH container on its own network stack complete with is own IP which will avoid these problems.
Thanks @rlkoshak, that helps. Some investigation revealed that it is the DVB Logic TV server on my Synology which is using port 8101.
But at this point I am unsure how to continue. One of both applications need to change the port. Should it be openhab or DVBLink? I would prefer to continue running DVBLink on the default ports. Otherwise I would have to adjust the port for each and every client (which are some).
Is it possible to change the port of the openhab ssh server?