Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

How to ssh to multiple servers and run commands

for server in box1 box2 box3
do
   ssh root@${server} uptime
done
Comment

PREVIOUS NEXT
Code Example
Shell :: active directory update Home folder path powershell 
Shell :: Install Chef Habitat from the Command Line 
Shell :: instalacion mkweb 
Shell :: git debug 
Shell :: ffmpeg scale but keep aspect ratio 
Shell :: ag ignore directory 
Shell :: install goaccess 
Shell :: linux convert to sha512 
Shell :: how to commit a file in git and never commit it again 
Shell :: get last line from string powershell 
Shell :: install unixodbc in heroku requirements.txt 
Shell :: disban camera ubuntu 
Shell :: http get cli 
Shell :: vim : undo stops working 
Shell :: how to clear log snap.io 
Shell :: linux less go to last line 
Shell :: pipeline remove all bin obj project 
Shell :: c pipe 2 arguments 
Shell :: what does le mean in linux 
Shell :: Install Lumen CSV 
Shell :: show windows version cnd 
Shell :: soundfile sndfile library not found 
Shell :: make a ZFS raid z volume 
Shell :: Bash script general template to generate script format 
Shell :: git push with topic 
Shell :: Find all pods that status is NotReady jq cheatsheet 
Shell :: install symfony cli 
Shell :: delete evicted pods 
Shell :: cmake install files 
Shell :: add existing project on github 
ADD CONTENT
Topic
Content
Source link
Name
6+4 =