Network pipes
Kirk Strauser
kirk at strauser.com
Thu Jul 24 16:02:50 PDT 2003
At 2003-07-24T08:19:49Z, Diomidis Spinellis <dds at aueb.gr> writes:
> tar cvf - / |@ ssh remotehost -- dd of=/dev/st0 bs=32k | :
> The effect of the above command is that a socket is created between the
> local and the remote host with the standard output of tar and the standard
> input of dd redirected to that socket. Authentication is still performed
> using ssh (or any other remote login mechanism you specify before the --
> argument), but the flow between the two processes is from then on not
> protected in terms of integrity and privacy. Thus the method will mostly
> be useful within the context of a LAN or a VPN.
Isn't this almost the same as:
# ssh -f remotehost "nc -l -p 54321 | dd of=/dev/st0 bs=32k"
# tar cvf - / | nc remotehost 54321
Netcat implements a TCP/UDP transports and basically nothing else. Isn't
that what you're trying to achieve?
--
Kirk Strauser
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 188 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-hackers/attachments/20030724/ba3a4f9e/attachment.bin
More information about the freebsd-hackers
mailing list