> Ok, this is driving me crazy, I want to tar a bunch of dirs/files/etc and
> port it through ssh on linux.
>
> I tried tar -cvf - | ssh [EMAIL PROTECTED]
tar -cv * | ssh -l user remotehost.com 'cat > file.tar'
creates file.tar on the remote server.
You don't want the -f option to tar -- that means create a file. Just tar
-cv will put the tar file on stdout.
When you pipe it to ssh (note that the syntax is 'ssh -l user host'..
you're maybe thinking of scp which is 'scp localfile user@host:') ssh
connects to the server, then runs 'cat > file.tar' which just reads from
the stdin (which is of course the piped output of your tar) and writes it
to a file.
Noam Sturmwind