parallel-ssh

Send commands to multiple hosts over SSH.

Create a file named ssh-hosts with the username, hostname, and ports:

steve@192.168.12.101:22
steve@192.168.12.102:22
steve@192.168.12.103:22

Execute a single command, no timeout, and print output on console:

parallel-ssh -i -t 0 -h ssh-hosts echo hello