Skip to content

Instantly share code, notes, and snippets.

@bofm
Last active June 23, 2016 12:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bofm/9a44fccbc466320b4d227cbdcbbc41a9 to your computer and use it in GitHub Desktop.
Save bofm/9a44fccbc466320b4d227cbdcbbc41a9 to your computer and use it in GitHub Desktop.
Netcat secure file transfer on OS X
# receive
nc -l 0.0.0.0 1234 | openssl aes-256-cbc -salt -d | pv | tar vx -
# send
tar -c <file or dir> | openssl aes-256-cbc -salt -e | nc -w 3 <host> 1234
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment