On Dec 5, 2007, at 3:16 PM, Michael Pobega wrote:
tar cvvf foo.tar bar | ssh user@dest "cat > foo.tar" Or am I doing it wrong (I most likely am)? I've never done any sort of piping through SSH before, so any sort of help would be appreciated.
You're close. Try this: tar cvvf - bar | ssh -e none user@dest "cat >foo.tar"Using - as the filename tells tar to output to stdout. "-e none" disables SSH's escape character, making the session fully transparent -- otherwise SSH will go into command mode if your tar output happens to contain a line that starts with ~.