I know that I can execute a command on a remote server (see this question on SO).
I want to execute one command on multiple remote servers (possibly using a script to loop through them all?) where the output of the command will have arbitrarily long output (i.e. the output will not stop until I press Ctrl + C
). I also want to be able to stop running the program on the remote servers which this command executes.
How do I execute a command from my local machine on an arbitrary number of remote servers where (1) the command has an indefinite output length and (2) the command is terminable?