execute script on remote machine linux code example Example: Running a local script on a remote machine (or remote on local) ssh [email protected] 'bash -s' < scriptfile.sh