Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

How to ssh to multiple servers and run commands

for server in box1 box2 box3
do
   ssh root@${server} uptime
done
 
PREVIOUS NEXT
Tagged: #How #ssh #multiple #servers #run #commands
ADD COMMENT
Topic
Name
4+9 =