> For the complete documentation index, see [llms.txt](https://docs.arkannis.net/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.arkannis.net/os/linux/ssh/run-local-bash-scripts-on-remote-server.md).

# Run local bash scripts on remote server

1. Run the SSH command that you normally use to log onto the machine
2. Inject the script into the ssh command:

```bash
ssh -i ~/.ssh/KEY USERNAME@SERVERNAME < SCRIPT.sh
```
