Page 1 of 1

SFTP support on Cumulus Toolsbox??

Posted: Sun 28 Aug 2011 7:19 pm
by yv1hx
Hello all Weather Enthusiasts,

Due the unsafe nature of the FTP protocol, this will be phased out in few weeks from our main web server, there is any possibility to upgrade the Toolsbox for support the encrypted SFTP protocol?

Thanks in advance,

Re: SFTP support on Cumulus Toolsbox??

Posted: Mon 29 Aug 2011 9:34 am
by JennyLeez
yv1hx wrote:Hello all Weather Enthusiasts,

Due the unsafe nature of the FTP protocol, this will be phased out in few weeks from our main web server, there is any possibility to upgrade the Toolsbox for support the encrypted SFTP protocol?

Thanks in advance,
When my server changed to SFTP nothing altered at my end. My files just continued to upload.
I did however add a second SFTP with a different password and changed login to upload through this just in case :)
But either work.
Cheers

Re: SFTP support on Cumulus Toolsbox??

Posted: Wed 31 Aug 2011 2:21 pm
by yv1hx
JennyLeez wrote: When my server changed to SFTP nothing altered at my end. My files just continued to upload.
I did however add a second SFTP with a different password and changed login to
Ummm...sound like both protocols still active...they are entirely different protocols..

Re: SFTP support on Cumulus Toolsbox??

Posted: Wed 31 Aug 2011 2:25 pm
by daj
I can look into support for SFTP in Toolbox. You realise Cumulus does not support SFTP either?

Re: SFTP support on Cumulus Toolsbox??

Posted: Wed 31 Aug 2011 3:02 pm
by yv1hx
Hello David,
daj wrote:I can look into support for SFTP in Toolbox. You realise Cumulus does not support SFTP either?
I´m aware of this situation, I think this solution http://wiki.sandaysoft.com/a/SFTP should be ok for us.

Our network management (a .gob domain) is very strictly and they are scheduling security enhancements.

Your support will be very appreciated.

Re: SFTP support on Cumulus Toolsbox??

Posted: Wed 31 Aug 2011 3:07 pm
by steve
daj wrote:You realise Cumulus does not support SFTP either?
Marco-Luis raised an enhancement request, but my reply was that there are no free SFTP components for Delphi (as far as I am aware) and I don't think there is sufficient demand to justify the cost of commercial components.





And I'd have to write a whole lot of new code.

Re: SFTP support on Cumulus Toolsbox??

Posted: Wed 31 Aug 2011 3:16 pm
by mcrossley
Steve

Would it be possible to use Putty, or at least PLink? Which is open source...
A.4.3 How can I use PuTTY to make an SSH connection from within another program?

Probably your best bet is to use Plink, the command-line connection tool. If you can start Plink as a second Windows process, and arrange for your primary process to be able to send data to the Plink process, and receive data from it, through pipes, then you should be able to make SSH connections from your program.

This is what CVS for Windows does, for example.
http://www.chiark.greenend.org.uk/~sgtatham/putty/

Re: SFTP support on Cumulus Toolsbox??

Posted: Wed 31 Aug 2011 3:26 pm
by steve
mcrossley wrote:Would it be possible to use Putty, or at least PLink? Which is open source...
Or PSFTP, perhaps. But the wiki's batch file solution is probably better than grafting an external application onto Cumulus.

Re: SFTP support on Cumulus Toolsbox??

Posted: Mon 29 Feb 2016 11:02 am
by WurliTzerwilly
FWIW I just jumped through hoops to get SFTP to work, but finally succeeded. :D

The script examples for WinSCP are almost correct for most people, but in my case I needed to change the port number which is easy once you know how - just put a :[port #] at the end of the URL.

You also need to specify the filename as part of the full remote path.

If you want the update time to be displayed correctly on the index page and on the gauges page, as well as uploading "realtime.txt" you also need to upload "web\index.html" and "web\gauges.html". That means there are 3 "put" commands.