Uruchom skrypt powłoki zdalnie za pomocą SSH

ssh root@MachineB 'bash -s' < local_script.sh
Magnificent Magpie