tar -cpf - | ssh user@host (cd target_directory; tar -xvpf -) Omit the "<" characters. Those are, uh, meta-syntactic. The open and close parens make sure that the stdin stream is received by the tar -x process.