i run into similar problems setting up
MOSQUITTO
on RPI recently
finding that my password file has wrong settings ?NOW under TRIXIE?
here show modified setup procedure:
< password>
< password>
here comes the new partand setup:#and add at end:
listener 1883
allow_anonymous false
password_file /etc/mosquitto/pwfile
[ ctrl ][ s ][ ctrl ][ x ]
OR REBOOT
for check:_____________________
now in terminal can start a client to check on incomming:and in a second terminal try to send something:and should see it in the first terminal listening.
MOSQUITTO
on RPI recently
finding that my password file has wrong settings ?NOW under TRIXIE?
here show modified setup procedure:
Code:
sudo apt install -y mosquitto mosquitto-clientssudo systemctl enable mosquittosudo mosquitto_passwd -c /etc/mosquitto/pwfile < user>< password>
here comes the new part
Code:
sudo chmod 0700 /etc/mosquitto/pwfilesudo chown mosquitto:mosquitto /etc/mosquitto/pwfileCode:
sudo nano /etc/mosquitto/mosquitto.conflistener 1883
allow_anonymous false
password_file /etc/mosquitto/pwfile
[ ctrl ][ s ][ ctrl ][ x ]
Code:
sudo systemctl restart mosquittofor check:
Code:
sudo service mosquitto statusjournalctl -xeu mosquitto.servicesudo cat /var/log/mosquitto/mosquitto.lognow in terminal can start a client to check on incomming:
Code:
mosquitto_sub -h localhost -u "< user>" -P "< password>" -v -t "#"Code:
mosquitto_pub -h localhost -u "< user>" -P "< password>" -t "MY/TOPIC/set" -m "POWERON"Statistics: Posted by PiPlay — Tue Oct 28, 2025 12:52 am