# MQTT Server Issue - Connection Refused not authorized

**URL:** <https://community.openenergymonitor.org/t/mqtt-server-issue-connection-refused-not-authorized/1828>\
**Category:** emonPi\
**Created:** [9 October 2016 12:16 UTC](https://community.openenergymonitor.org/t/mqtt-server-issue-connection-refused-not-authorized/1828 "2016-10-09T12:16:47Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![emontxv3](https://community.openenergymonitor.org/letter_avatar_proxy/v4/letter/e/439d5e/32.png) [@emontxv3](https://community.openenergymonitor.org/u/emontxv3)\
**Post date:** [10 October 2016 17:32 UTC](https://community.openenergymonitor.org/t/mqtt-server-issue-connection-refused-not-authorized/1828/5 "2016-10-10T17:32:29Z")

</div>

I didn’t have to add the two lines. They were already written in de moquitto.conf file.

The command “mosquitto\_sub -v -u ‘emonpi’ -P ‘emonpimqtt2016’ -t ‘test/topic’” results in multiple lines  
**"Connection Refused: not autorised."**  
And had to stop this with CTRL-C.

---

_[View the full topic](https://community.openenergymonitor.org/t/mqtt-server-issue-connection-refused-not-authorized/1828)._
