helper to send ssh command to all workers