To copy content from client and paste it to server use netcat. On server run netcat which receives a data from the client
netcat -l -p <PORT> > <FILE>
On client run netcat to send a data to the server:
netcat <HOST> <PORT>
Once netcat starts, you need input data and press ENTER. Server receives data and writes content to specified file.