Para conectar con nuestro broker , en Linux instalar mosquitto-clients, ej en debian
apt-get install mosquitto-clients
luego para publicar un msg ejecutar
mosquitto_pub -h mqtt.redlibre.cl -t test -m "hola!"
donde -t es el topico y -m es el mensaje
para subscribir al broker sus dispositivos ejecutar
mosquitto_sub -h mqtt.redlibre.cl -t test