ssh user@remoteserver 'bash -s' < script.sh