Linux.com

Securing netcat & transferring files

Posted by: Anonymous Coward on November 15, 2005 11:02 PM
I was taught this by Hobbit who wrote netcat.

ssh into a system (a.com) and forward a port:

      ssh a.com -L 51001:127.0.0.1:51001

Now you can transfer files:

    On a.com, nc -lvnp 51001 127.0.0.1 > file

    On your system, nc -v -w 2 127.0.0.1 51001 file

The file will get transferred, securely, with less overhead then scp, with error correction (via TCP).

#

Return to CLI Magic: netcat