Skip to content

execute local script on remote machines with pssh

Scenario

目标命令中含有特殊符号,导致pssh批量执行可能出问题,此时可以考虑使用脚本和重定向方式来远程执行。

Usage

pssh -h RemoteHosts.ip -P -I < ~/LocalScript.sh

Disclaimer
  1. License under CC BY-NC 4.0
  2. Copyright issue feedback: dig +short txt issue.imzye.com
  3. Not all the commands and scripts are tested in production environment, use at your own risk
  4. No privacy information is collected here
Buy Me a Coffee