Just in case someone struggles with the command mosquitto_sub, dont forget to use flags -u and -P.
also see:
https://community.openhab.org/t/struggling-with-oh-2-5-4-and-zigbee2mqtt-tutorial-mosquitto-sub-gives-connection-refused/97966