I am opening a command line tool called Overcast to simplify this task.
First you import your servers:
overcast import server.01 --ip=1.1.1.1 --ssh-key=/path/to/key overcast import server.02 --ip=1.1.1.2 --ssh-key=/path/to/key
After that, you can run commands through them using wildcards, for example:
overcast run server.* hostname "ls -Al" ./scriptfile overcast push server.* /home/zahaib/nodes/fpl_* /home/abc_def/
source share