something like this, i recon:

  $ tar cf - ~/.shrc | ssh target '(cd ~ && tar xf -)'