Hi,

Your real problem is that you are trying to pipe the output from tar (i.e.
the tar file) directly to a shell (in this case ssh which of course also
starts with trying to authenticate you possibly asking you of password
from stdin where you are sending a tar file currently). If you want to use
ssh as for example rsh you need to have it authenticate without stdin to
be able to read stdin directly (e.g. use a publickey pair with an
unprotected private key). Also, you would of course need something in "the
other end" (i.e. the ssh server end) that "processes" your pipe (in this
case the tar output) such as 'cat > foobar.tar' which would save the tar
file to the file 'foobar.tar'.

Cheers,

/Mats

On Thu, 14 Dec 2000, Olof Liungman wrote:
> i.e., "create tar archive (c) by tar:ing all the files in the current
> directory (*) and send the result to standard output (f -)"? Works on my Sun
> box...
> 
> Secondly, ssh doesn't transfer files, does it? So if you should pipe the
> output to anything it should be scp, shouldn't it? Though I'm not certain
> >
> > I tried tar -cvf - | ssh [EMAIL PROTECTED]
> >
> > all I want is to have the tar file exist on the remote box.

Reply via email to