Answer the question
In order to leave comments, you need to log in
How or what program to perform an action on all servers simultaneously via ssh?
there are several servers
, let's say 100
, and you need to enter a command in each via ssh .... this can take forever
, how can this be done simultaneously for all?
Answer the question
In order to leave comments, you need to log in
Absible, Chef, Puppet are all correct solutions. But I can still offer something like this crutch.
for i in `cat /list/of/servers`; do
ssh $i 'ls -l'
done
For example, like this habrahabr.ru/post/215111 or like this habrahabr.ru/post/163811
or man dsh
1. See the ssh syntax to execute the command on the server
2. Copy this command line by line 100 times
3. Change the user\server in each line
4. Copy and paste into the terminal or save to a file and execute it
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question