Send a local script to the remote shell over standard input.
Section: Basics
Run a local script over SSH via stdin
bash
bash
ssh user@example.com 'bash -s' < ./deploy.shExplanation
Send a local script to the remote shell over standard input.
Learn the surrounding workflow
Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.
Related commands
Same sheet · prioritizing Basics