Hot answers tagged

1

nc establishes a bi-directional connection. I.e. it sends stdin from host B to host A as well as the desired one from A to B. Use -d on host B to ignore stdin. -N on host A is still needed to close the TCP connection on EOF. In summary Host A: tar cf - stuff | dd | nc -N -l 12987 Host B: nc -d a.example.com 12987 | dd | tar tf -



Only top voted, non community-wiki answers of a minimum length are eligible