Linux.com

Re:Securing netcat & transferring files

Posted by: Anonymous Coward on November 15, 2005 11:05 PM
How about transfering from a.com to b.com when they can't talk direct, but you can ssh into both?


    ssh into a.com as above.

    ssh b.com -L 51002:127.0.0.1:51002

      On a.com:nc -lvnp 51001 127.0.0.1 file

      On your system, connect the pipes:

          nc -v -w 2 127.0.0.1 51001 \

              | nc -v -w2 127.0.0.1 51002

#

Return to CLI Magic: netcat