# Exception caught while starting SSH server; port already in use (solved)

**URL:** <https://community.openhab.org/t/exception-caught-while-starting-ssh-server-port-already-in-use-solved/23487>\
**Category:** Runtime\
**Tags:** ssh, openhab2, synology\
**Created:** [February 21, 2017, 9:08am UTC](https://community.openhab.org/t/exception-caught-while-starting-ssh-server-port-already-in-use-solved/23487 "2017-02-21T09:08:17Z")\
**Posts on this page:** 1\
**Showing post:** 8

<div class="post-metadata">

**Author:** ![chriscolden](https://community.openhab.org/user_avatar/community.openhab.org/chriscolden/32/71507_2.png) [@chriscolden](https://community.openhab.org/u/chriscolden)\
**Post date:** [February 23, 2017, 1:30pm UTC](https://community.openhab.org/t/exception-caught-while-starting-ssh-server-port-already-in-use-solved/23487/8 "2017-02-23T13:30:08Z")

</div>

I’ve just created a little post documenting our findings and file locations including the path you have provided.

> [@HowTo: Change SSH port on openHAB2](https://community.openhab.org/t/howto-change-ssh-port-on-openhab2/23669):
>
> To change the SSH port in openhab2 you must edit the following file org.apache.karaf.shell.cfg You need to update the following entry. sshPort = 8101 The port is 8101 by default but can be changed to any available port of your choosing. org.apache.karaf.shell.cfg can be found in the following locations. Linux Package Install - /var/lib/openhab2/etc/org.apache.karaf.shell.cfg Linux Manual Install - /opt/openhab2/userdata/etc/org.apache.karaf.shell.cfg Synology NAS - /volume1/@appstore/ope…

---

_[View the full topic](https://community.openhab.org/t/exception-caught-while-starting-ssh-server-port-already-in-use-solved/23487)._
