I modified my /etc/mosquitto/mosquitto.conf
to start on a different port and also require username password authentication. I then started my service like so:
/usr/local/sbin/mosquitto -c /etc/mosquitto/mosquitto.conf
I confirmed that all my devices and websites are able to connect and use this service in the way I expect, so everything is perfect.
I want to SSH into my server and enter the command line interface to visually monitor some activities . So I typed this command into bash mosquitto
. But I get the following output:
605108095: mosquitto version 1.4.10 (build date 2020-06-13 20:47:29+0000) starting
1605108095: Using default config.
1605108095: Opening ipv4 listen socket on port 1883.
1605108095: Opening ipv6 listen socket on port 1883.
The message says I've logged into an instance of mosquitto that is running on port 1883. This NOT the instance I want to be monitoring. I want to monitor the instance that was initialized by /usr/local/sbin/mosquitto -c /etc/mosquitto/mosquitto.conf
. How can I do that?