execute multiple commands on multiple servers from the shell command line Posted on August 26, 2015 by freegnu for i in host{1,2,3}.{east,west}.serverdomain.net;do ssh -t $i ‘for i in this that;do ls $i;done’;done