The mosquitto_sub cli is unable to connect to your MQTT broker. Make sure:
Mosquitto is up and running
Your credentials are entered correctly
You could also inspect your Mosquitto logs. Not tested but you should be able to find them using journalctl -f -n 100 -u mosquitto or somewhere under /var/logs/mosquitto..... That might give you a clue
ok I just make a little mistake
first I use the acls not plug,and then you should check the mqtt server(comand line $:mosquitto)
if you find some logs in the terminal. congratulation!!!!you make great progress
thanks brocaar