This repo mostly contains config files, scripts, and documentation that I use to manage the Raspberry Pi 4 that I have running as a home server, mostly to run Home Assistant for home automation.
- ssh into RPi
- Open shell in Mosquitto Docker container:
docker exec -it $(docker ps -f name=mosquitto -q) "/bin/sh"
- Create new user:
mosquitto_passwd -b -c /tmp/mosquitto.passwd USER PASSWORD
- Verify the new password entry in
/tmp/mosquitto.passwd
, then copy it into/mosquitto/config/password.txt
. - Restart Mosquitto container:
docker container restart mosquitto