Running commands on a batch of computers
How can I remotely execute the same command on a batch of computers?
In Windows I'd do something like:
and as long as I'm admin on the remote computers the command gets executed.
for %i in (1 2 3 4) do psexec \\computer%i <some command>
I know I can use SSH to remotely execute a command but it prompts for a password every time (and if I've not connected to the machine before I also get asked to accept the key). I'd like to do this without having to type the password lots of times or I might as well just go and log on to 36 machines!