Skip to content

Instantly share code, notes, and snippets.

@zlei1
Last active March 21, 2019 10:03
Show Gist options
  • Save zlei1/13c3aeebbeb2d095ffd58bcbea9061ea to your computer and use it in GitHub Desktop.
Save zlei1/13c3aeebbeb2d095ffd58bcbea9061ea to your computer and use it in GitHub Desktop.
scp a_file x.x.x.x:~/
cat a_file | ssh x.x.x.x "cat - > a_file"
tar zcf - dir | ssh x.x.x.x "cat - > dir.tgz"
nc -l 8080 > dir.tgz
tar zcf - dir | nc x.x.x.x 8080
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment