Skip to content

Instantly share code, notes, and snippets.

@jstaffans
Created February 2, 2017 13:20
Show Gist options
  • Save jstaffans/b4e31d0c820ceacc283613b5e9abde15 to your computer and use it in GitHub Desktop.
Save jstaffans/b4e31d0c820ceacc283613b5e9abde15 to your computer and use it in GitHub Desktop.
Execute contents of script via SSH
#!/bin/sh
tail -n +3 "@0" | ssh <foo@bar>; exit
echo "hi"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment