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