Exemplos de Uso
$
yum install pssh -y
$
echo "192.168.1.100" > /tmp/hosts.txt
echo "192.168.1.101" >> /tmp/hosts.txt
$
pssh -h /tmp/hosts.txt -l root "uptime"
$
pssh -h /tmp/hosts.txt -l root -x "-i /root/.ssh/id_ed25519" "df -h"
$
pscp -h /tmp/hosts.txt /scripts/config.sh /root/scripts/
$
for host in $(cat hosts.txt); do
ssh root@$host "comando" &
done
wait