[clug] How to connect two Linux boxes? [SEC=UNCLASSIFIED]
Brad Hards
bradh at frogmouth.net
Thu Sep 3 05:07:29 MDT 2009
On Thursday 03 September 2009 16:10:59 Daniel Pittman wrote:
> FWIW, though, if I want unencrypted transfer I typically just use netcat
> and tar, which does fine and uses raw TCP directly.
So the magic here is something like:
On the receive end, issue
nc -l -p 6099 | tar -C /path/to/dump/data/to -xzf -
On the send end, issue:
tar -cz /path/to/get/data/from | nc hostname_or_ip_of_receive_end 6099
You might like to experiment with using the z option (compress) to tar. Might
be faster to just not bother.
If its just one file, don't bother with tar, just cat the file instead:
nc -l -p 6099 | cat > /path/on/receive/end/filename.whatever
and
cat /path/on/send/end/filename.whatever | nc hostname_or_ip_of_receive_end 6099
Brad
More information about the linux
mailing list