Use SCP instead of FTP on Raspberry Pi

Hi,

I have a Raspberry 2 & 3 and two Weather Flows (for different locations).

I have it collecting the data from the Weather Flows.

In config.txt there is details for FTP but I don’t see details for SCP/SFTP. Is there a way I can use SCP/SFTP (SSH cert based authed not password based as a preference)? As all my remote web hosts only use encrypted protocols (and have password authed disabled in favour of SSH certs for authenication) and thus FTP is not an option. Is there a way to use SCP/SFTP on the Raspberry Pis from config txt?

Second option is there an option for it to just put the output files in a directory and I have my own shell script and cronjob to copy the data off via SCP, RSync over SSH, etc?

Or last option do I need to set up an FTP server on the Raspberry bound to localhost and FTP the data there and then have my own shell script and cronjob to copy the data off via SCP?

Thanks

using curl might be an option