Created
December 17, 2021 05:24
-
-
Save yuuichi-fujioka/b4a75a6cf848076d0b4756f2a3092d85 to your computer and use it in GitHub Desktop.
run single binary on remote host
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cat helloworldbin | ssh server01 'sh -c '"'"'tmp=$(mktemp -d); cat > $tmp/helloworldbin; chmod +x $tmp/helloworldbin; $tmp/helloworldbin; rm -fr $tmp '"'" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment