Механизмы для того, чтобы сделать это теперь встроены в bittorrent протокол: http://en.wikipedia.org/wiki/Cache_Discovery_Protocol
Однако, как упомянуто в статье, до настоящего времени никакие спецификации не были выпущены для разрешения поддержки.
As a work around you could probably change /etc/init/mysql.conf and add 'and started ssh' to the 'start on ()' section. This should prevent mysql from attempting to start until ssh is already running so that at least you can fix the machine.