3 ms·
no need of netcat: tar c . | ssh user@host tar x -C destdir
by reacweb 12y ago
no need of netcat: tar c . | ssh user@host tar x -C destdir
- arbalist 12y agoThe need to use netcat is that it is faster. It gets better throughput in the presence of plentiful bandwidth. The whole point was to avoid using ssh for bulk transport.
- reacweb 12y agossh user@host "nc -l 1234 | tar x -C dest_dir" and in another terminal: tar c . | nc -p host 1234 If you do not care about security, why not using rcp ?