Large file transfer using netcat

September 8th, 2010 | Tags: ,

I didn’t feel like setting up a NFS share and ftp access within the organization is just plain stupid if you ask me. scp is cool but also lots of overhead.
netcat is the shit.

client -> serverA
target -> serverB

On my client (where I want to send files from), I connect to serverB via port 11223

tar -cz SOMEFILES | nc serverB 11223

On target (where the file copies to), I open up port 11223 and extract my files to current working directory.

nc -l 11223 | tar -xz
No comments yet.