How can I automate running commands remotely over SSH to multiple servers in parallel?

前端 未结 20 1733
温柔的废话
温柔的废话 2020-12-12 20:03

I\'ve searched around a bit for similar questions, but other than running one command or perhaps a few command with items such as:

ssh user@host -t sudo su -         


        
20条回答
  •  鱼传尺愫
    2020-12-12 20:12

    pssh may be interesting since, unlike most solutions mentioned here, the commands are run in parallel.

    (For my own use, I wrote a simpler small script very similar to GavinCattell's one, it is documented here - in french).

提交回复
热议问题