[nycbug-talk] HPN-SSH

Ray Lai nycbug at cyth.net
Mon May 22 16:07:21 EDT 2006


On Mon, May 22, 2006 at 03:37:24PM -0400, N.J. Thomas wrote:
> * Okan Demirmen <okan at demirmen.com> [2006-05-22 14:45:20 -0400]:
> > as an alternative, consider piping over ssh - that tends to be so much
> > faster than scp'ing (for me) - however, i have to numbers to back that
> > up ;)
> 
> I do this when I need to do a quick and dirty file transfer and security
> is not a concern:
> 
>     $ nc -v -l 10000|tar xvf -              # wait for file to be transferred
>     $ tar cf - foo |nc -v example.org 10000 # (sending machine) transfer file

Similarly, I do:

	$ tar czf - . | ssh host 'tar xvzf -'

I remember having trouble when needing to enter a password, but it
always works when using ssh-agent.

-Ray-



More information about the talk mailing list