SFTP: Difference between revisions
m (added category) |
(Added details of fiels to be uploaded) |
||
Line 1: | Line 1: | ||
Many ISPs now only support [http://en.wikipedia.org/wiki/Simple_File_Transfer_Protocol SFTP] due to the open, unsecure nature of standard FTP |
Many ISPs now only support [http://en.wikipedia.org/wiki/Simple_File_Transfer_Protocol SFTP] due to the open, unsecure nature of standard FTP |
||
As Cumulus does not currently support SFTP an external SFTP application must be used |
As Cumulus does not currently support SFTP an external SFTP application must be used |
||
[http://winscp.net WINSCP] can be used |
[http://winscp.net WINSCP] can be used |
||
Looking at http://winscp.net/eng/docs/script_upload_single_file, winSCP can be used to script SFTP |
Looking at http://winscp.net/eng/docs/script_upload_single_file, winSCP can be used to script SFTP |
||
You have to run it by hand once, to allow the SSH key to be trusted, then it works on its own |
You have to run it by hand once, to allow the SSH key to be trusted, then it works on its own |
||
⚫ | |||
⚫ | |||
option batch abort |
option batch abort |
||
option confirm off |
option confirm off |
||
Line 16: | Line 17: | ||
exit |
exit |
||
<br> |
|||
*change User:pass@server to your username, password and server name combination |
*change User:pass@server to your username, password and server name combination |
||
Line 22: | Line 24: | ||
*change /remotepath to the remote path on the web server (as seen when you SFTP to the web site) |
*change /remotepath to the remote path on the web server (as seen when you SFTP to the web site) |
||
After creating the batch file with the commands in it, configure Cumulus to call it at each web update interval. If you don't supply an ftp host name to Cumulus, it will create the updated web files locally but not attempt to ftp them. |
|||
To upload the 'standard web site' that ships with Cumulus, you will need to copy the following files: |
|||
*index.htm |
|||
*today.htm |
|||
*yesterday.htm |
|||
*record.htm |
|||
*trends.htm |
|||
*gauges.htm |
|||
*thismonth.htm |
|||
*thisyear.htm |
|||
and to the 'images' folder: |
|||
*wind.png |
|||
*rain.png |
|||
*press.png |
|||
*temp.png |
|||
*windd.png |
|||
*raint.png |
|||
*tempm.png |
|||
*raind.png |
|||
*windsm.png |
|||
*rainsm.png |
|||
*presssm.png |
|||
*tempsm.png |
|||
*winddsm.png |
|||
*raintsm.png |
|||
*tempmsm.png |
|||
*raindsm.png |
|||
*windrose.png |
|||
*windgauge.png |
|||
*compass.png |
|||
*moon.bmp |
|||
*intemp.png |
|||
*hum.png |
|||
*intempsm.png |
|||
*humsm.png |
|||
[[Category:WebTips]] |
[[Category:WebTips]] |
Revision as of 11:37, 16 December 2011
Many ISPs now only support SFTP due to the open, unsecure nature of standard FTP
As Cumulus does not currently support SFTP an external SFTP application must be used
WINSCP can be used
Looking at http://winscp.net/eng/docs/script_upload_single_file, winSCP can be used to script SFTP
You have to run it by hand once, to allow the SSH key to be trusted, then it works on its own
The following script works well
option batch abort option confirm off open User:pass@server put "localpath\realtime.txt" /remotepath exit
- change User:pass@server to your username, password and server name combination
- change localpath\realtime.txt to the local path on your PC
- change /remotepath to the remote path on the web server (as seen when you SFTP to the web site)
After creating the batch file with the commands in it, configure Cumulus to call it at each web update interval. If you don't supply an ftp host name to Cumulus, it will create the updated web files locally but not attempt to ftp them.
To upload the 'standard web site' that ships with Cumulus, you will need to copy the following files:
- index.htm
- today.htm
- yesterday.htm
- record.htm
- trends.htm
- gauges.htm
- thismonth.htm
- thisyear.htm
and to the 'images' folder:
- wind.png
- rain.png
- press.png
- temp.png
- windd.png
- raint.png
- tempm.png
- raind.png
- windsm.png
- rainsm.png
- presssm.png
- tempsm.png
- winddsm.png
- raintsm.png
- tempmsm.png
- raindsm.png
- windrose.png
- windgauge.png
- compass.png
- moon.bmp
- intemp.png
- hum.png
- intempsm.png
- humsm.png