Get the full mosquitto.conf file from the addon?

I’m in the middle of migrating from Home Assistant OS to a docker-based setup, and I just realized that the mosquitto addon abstracts away the actual mosquitto.conf file.

Is there any way I can get the full mosquitto.conf file from the mosquitto addon?

I’ve answered my own question:

  1. the debug mode ssh connection by following instructions here: Debugging the Home Assistant Operating System | Home Assistant Developer Docs
  2. ssh root@hassio -p 22222
  3. At the hassio > prompt run “login”
  4. Run docker exec -it $(docker ps -f name=homeassistant -q) bash
  5. Run cat /etc/mosquitto.conf and copy the output.

Thanks to this thread: Protip: How to get shell in actual homeassistant (or addon) container when using Hassio