SyntaxFix
Write A Post
Hire A Developer
Questions
ssh user@machine 'bash -s' < local_script.sh
or you can just
ssh user@machine "remote command to run"