Run a shell command across multiple SSH servers in sequence.
pip install ssh-run
Show usage information with:
Run a command on a single remote host:
ssh-run -h example.com -- echo hello world
Run a command on multiple remote hosts:
cat hosts | ssh-run -H - -- echo hello world
Run a command on hosts matched by a chef search:
knife search -i "chef_evironment:staging" 2>/dev/null | ssh-run -H - -- echo hello world
Start a shell for running multiple commands:
ssh-run -h host1 -h host2
Runs on Python 2.6 and above, including Python 3.
ssh-run is licenced under the MIT Licence.