cloudy cloudy

Author Topic: Use SCP instead of FTP on Raspberry Pi  (Read 373 times)

0 Members and 1 Guest are viewing this topic.

Offline karit

  • Posts: 1
  • OS/Browser:
  • (Linux Mint)
  • Firefox 64.0
Use SCP instead of FTP on Raspberry Pi
« on: January 04, 2019, 10:58:16 PM »
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

Offline Weather Display

  • Posts: 87,430
  • Davis VP2
  • New Zealand
  • OS/Browser:
  • Win NT 10.0
  • Chrome 71.0.3578.98
    • Weather Display
Re: Use SCP instead of FTP on Raspberry Pi
« Reply #1 on: January 04, 2019, 11:09:26 PM »
using curl might be an option