Is that a real mosquitto, or the HA add-on ? If the add-on, you need to provide a user and password in the esphome yaml.