mussh

Run SSH commands on multiple hosts in parallel

brewmacoslinux
Try with needOr install directly
Source

About

Multi-host SSH wrapper

Commands

mussh

Examples

run same command on multiple servers at once$ mussh -H host1,host2,host3 'uptime'
execute command on all hosts listed in file$ mussh -H /path/to/hostfile 'systemctl restart nginx'
run command on multiple hosts with custom SSH port$ mussh -H host1,host2 -p 2222 'df -h'
execute command as different user on remote servers$ mussh -H server1,server2 -u admin 'sudo apt update'
run multiple commands across servers with custom concurrency$ mussh -H host1,host2,host3 -c 2 'whoami && pwd'