Created
September 27, 2012 14:27
-
-
Save ramn/3794292 to your computer and use it in GitHub Desktop.
Send a file with netcat over ssh tunnel
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
### Sending a file | |
# BSD nc syntax | |
cat myDocument.pdf | ssh me.myserver.com nc -l 20000 | |
# Hobbit nc syntax - try this one if unsure! | |
cat myDocument.pdf | ssh me.myserver.com nc -l -p 20000 | |
### Receiving a file | |
nc me.myserver.com 20000 > myDocument.pdf |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment