One-shot commands
You don't always need an interactive SSH session. ssh host 'command' runs the command on the remote and exits. Combine that with the parallel patterns and you have a fleet command shell.
The quoting trap
Quoting in SSH is where most surprises happen. The rule: single quotes mean "evaluate on the REMOTE side." Double quotes mean "local shell expands first, then send the result remote." When in doubt, single quotes. When you need a local variable embedded into a remote command, use the heredoc pattern.