# Mosquitto errors

**URL:** <https://community.openhab.org/t/mosquitto-errors/22685>\
**Category:** Bindings\
**Created:** [February 11, 2017, 5:04pm UTC](https://community.openhab.org/t/mosquitto-errors/22685 "2017-02-11T17:04:42Z")\
**Posts on this page:** 1\
**Showing post:** 8

<div class="post-metadata">

**Author:** ![Dim](https://community.openhab.org/user_avatar/community.openhab.org/dim/32/4568_2.png) [@Dim](https://community.openhab.org/u/Dim)\
**Post date:** [February 11, 2017, 7:51pm UTC](https://community.openhab.org/t/mosquitto-errors/22685/8 "2017-02-11T19:51:38Z")

</div>

You can test the Mosquitto MQTT Broker with the following commands:

Open a ssh login in one window and subscribe to all topics under `openhab`:

```auto
mosquitto_sub -u openhab -P habopen -t openhab/#

```

Open another ssh login in another window and publish a message (e.g. ON) to a topic (e.g. command) under `openhab`:

```auto
mosquitto_pub -u openhab -P habopen -t openhab/command -m ON

```

On the first window with the subscription, you should see the published message (ON)

Does this simple test work? (if yes: your MQTT Broker is working fine and you need to check the openHAB2 configuration of the MQTT Binding again)

Ps: You will need to have `apt-get install mosquitto-clients` for these pub & sub commands to work.

---

_[View the full topic](https://community.openhab.org/t/mosquitto-errors/22685)._
