sorry for the brief question. i tried Aristotle (first reply) solution and i got it to work. the OS is am working is freeBSD.
ssh remotehost cat >> filename <localfile
later i append stuff into filename at various times. now the problem is permission as every attempt to write to this file requires a password. and the script needs to be automated.