To append content of a file in a remote server’s file use following command:
$ cat input.txt| ssh hostname 'cat >> output.txt'
To append some text in remote servers file use following command:
$ echo "Your text here" | ssh hostname 'cat >> output.txt'
Where input.txt is input file, hostname is remote Linux machine hostname or ip address, and output.txt is output file in remote machine.