Execute script de shell remotamente usando SSH
ssh root@MachineB 'bash -s' < local_script.sh
Magnificent Magpie
ssh root@MachineB 'bash -s' < local_script.sh