Last active
June 23, 2016 12:07
-
-
Save bofm/9a44fccbc466320b4d227cbdcbbc41a9 to your computer and use it in GitHub Desktop.
Netcat secure file transfer on OS X
This file contains 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
# 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