How to run a script file remotely using SSH February 12, 2023 by Tarik You can do: ssh user@host 'bash -s' < /path/script.sh