test/cluster: Use a persistent SSH connection

This avoids connecting to SSH for every single command (there are a lot of them when dumping logs).