SSH and MQTT are both networking protocols. However, SSH uses a master-slave architecture. The "master" provides inputs for another computer or "slave" to work with. In contrast, MQTT is more of a send-it-once-broadcast-to-everyone kind of architecture. Client computers can send a message to an MQTT broker which forwards it to all the other clients in the same network.