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

前端 未结 20 1758
温柔的废话
温柔的废话 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:39

    Take a look at Expect (man expect)

    I've accomplished similar tasks in the past using Expect.

提交回复
热议问题