e.g. Assumed that remote Ubuntu machine have installed SSH Server service
Read How to install SSH Server for remote administration service?
Local files/folders location: localfile.txt
Remote Ubuntu machine: 192.168.0.1
Remote Ubuntu machine save location: /home/username/