Skip to content

Instantly share code, notes, and snippets.

@virullius
Created January 8, 2015 18:08
Show Gist options
  • Save virullius/0814f91784a519d77ec8 to your computer and use it in GitHub Desktop.
Save virullius/0814f91784a519d77ec8 to your computer and use it in GitHub Desktop.
run local script on remote server over ssh (bash)
ssh user@host 'bash -s' < /path/to/my-script.sh
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment