SCP from STDIN: "-t" option undocumented?

Shawn O'Shea shawn at eth0.net
Thu Dec 22 16:35:05 EST 2011


On Thu, Dec 22, 2011 at 4:25 PM, John Abreau <jabr at blu.org> wrote:

> Long ago, I was looking for a way to make scp read from stdin, and I
> had no luck.
> <snip>

Is this documented anywhere? I don't understand why the option would be
> left out of the man page.
>
>
Although I've never heard of the -t option to scp myself, I've accomplished
the equivalent of copying over stdin/stdout. You can invoke a command that
dumps on stdout and then pipe that to ssh with a program that pulls from
stdin.

Ie.
dd if=infile | ssh remotehost dd of=outfile
or
tar cf - | ssh remotehost tar xvf -

-Shawn
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.gnhlug.org/mailman/private/gnhlug-discuss/attachments/20111222/a10cc566/attachment.html 


More information about the gnhlug-discuss mailing list