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

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

    You can try paramiko. It's a pure-python ssh client. You can program your ssh sessions. Nothing to install on remote machines.

    See this great article on how to use it.

提交回复
热议问题