Steps to install yamlfmt and go in wsl
sudo apt update && sudo apt install -y golang
go install github.com/google/yamlfmt/cmd/yamlfmt@latest
echo 'export PATH="$PATH:$HOME/go/bin"' >> ~/.bashrc
source ~/.bashrc
Steps to install yamlfmt and go in wsl
sudo apt update && sudo apt install -y golang
go install github.com/google/yamlfmt/cmd/yamlfmt@latest
echo 'export PATH="$PATH:$HOME/go/bin"' >> ~/.bashrc
source ~/.bashrc
Mosquitto comes with a password file generating utility called mosquitto_passwd.
mosquitto_passwd -c /etc/mosquitto/passwd <user>
Ensure that the file is managed by the appropriate user and group.
chown mosquitto:mosquitto /etc/mosquitto/passwd
Now restart Mosquitto server.
systemctl restart mosquitto
The command below will show what ports are listening (look for *:1883 (LISTEN))
lsof -i -P -n | grep LISTEN