Here is a way:
ssh target.machine 'F=$(mktemp);scp source.machine:sourcefile $F ; cat $F >> targetfile ;rm $F'
Note: this will create the targetfile if it does not exist or append if it does. It is actually a scp being run on the target machine.
Last edited by david1941; 11-06-2008 at 09:02 PM.
Reason: Remove the temp file