Using ftp
Alan Adams (2486) 1149 posts |
I have an application that was using sftp via the Putty tools to update a web server. This allowed the program to create psftp commands and execute them. The server has been changed, and now uses plain ftp. Looking at !ftpc, the method using that uses Wimp messages, and completely different program flow. I am hoping there is a way for my program instead to create and execute plain ftp commands, so the structure remains the same. Can anyone help please? |
David J. Ruck (33) 1635 posts |
Get them to set the server up properly with sftp, plain ftp should not be used on anything internet facing these days. |
Alan Adams (2486) 1149 posts |
While I agree with the sentiment, I don’t have any control over the server. |
David J. Ruck (33) 1635 posts |
What caused the change to a server with an insecure protocol? If you have changed hosting provider, you need to change again! |
Rick Murray (539) 13840 posts |
If you’re paying, send them a message saying you demand SFTP, and ask why they have chosen, in 2024, to step backwards two decades to use an insecure protocol which requires you to transmit your login details in the clear.
Exactly. I use plain FTP here between my phones and RISC OS (etc) setting up the server on demand (it is built into ES File Explorer), but having FTP on the internet as a way to update your site is…dumb. Really dumb. I mean, even RISC OS can do SFTP so there’s no excuse.
If you don’t get a satisfactory response, then this. |
Steve Pampling (1551) 8170 posts |
Name and shame. |
Steve Fryatt (216) 2105 posts |
My recent experience (n=4) is that hosts are generally expecting users to be using file transfer over SSH if they want secure, and so are dropping FTP entirely or leaving the insecure one for those who can’t do SSH. Certainly in the Linux world, people seemed to move straight from insecure FTP and tools like Sitecopy, to rsync over SSH – ignoring secure FTP completely. Even Windows users can get in on that action with Putty. Or, in other words, the hosts may have recognised that in 2024 most people use SSH, a handful still use plain FTP despite warnings against it, and no-one uses secure FTP. So dropping secure FTP hurts no-one and removes an attack vector. I’ve been using rsync over SSH for a while now as it’s much easier to use than FTP, but I suspect that it’s another thing that RISC OS can’t do. |
Steve Pampling (1551) 8170 posts |
FTPS or SFTP? They are rather different but, from recent work conversations with suppliers, often confused. FTPS, is PITA with the extra ports and SFTP is basically SSH with FTP capabilities added. There’s plenty of info out and about
FileZilla. Pointy clicky solution, very regular updates that the application checks for at every runtime. Almost idiot-proof. Pretty GUI based familiarity for the average user.
Since both SFTP and SSH use port 22 the attack vector is rather similar, if not the same. Or, in other words, the hosts may have recognised that in 2024 most people use SSH, a handful still use plain FTP despite warnings against it, and no-one uses secure FTP. So dropping secure FTP hurts no-one and removes an attack vector. |
Alan Adams (2486) 1149 posts |
Nevertheless, I still need to be able to update this website, during an event that’s only 4 weeks away from the end of my holiday – a holiday when I’m away from RISC OS computers. Doing a major rewrite in that timescale is too risky to contemplate. Just to add to the problem is that I’ve now been told that the provider is likely to move the service to a different hosting site in the near future, so the access may change again. Plan C is looking good ATM. |
Dave Higton (1515) 3525 posts |
For some years now I’ve been using FTPc (http://www.ftpc.iconbar.com) with AcornSSL to do my site updates. I get confused between sftp and ftps; FTPc’s docs say it uses ftps. I think ftps is more common and more “respectable”, but I may of course be mistaken! Have you tried it? Would it help you? |
Herbert zur Nedden (9470) 41 posts |
As for ftps vs. sfpt I asked Dr. Google and found this one: https://www.spiceworks.com/tech/networking/articles/sftp-vs-ftps/ |
Steve Pampling (1551) 8170 posts |
The most important difference, especially when you’re dealing with firewalls, is that SFTP uses one single port (port 22) and FTPS uses multiple ports – sort of referenced in the spiceworks article without detail. see https://www.cerberusftp.com/blog/ftp-and-ftps-ports/ Comparison. Unless you’re concerned about needing to shift large volumes of data – use SFTP. |
Chris Hall (132) 3554 posts |
I use FTPc version 1.55 and this seems to work OK. Don’t know whether it uses Acorn SSL. It offers Explicit TLS which it calls ‘standard ftps mode’ (whatever that is, it requires R-Comp’s secure sockets module) but I just use normal ftp. |
Chris Gransden (337) 1207 posts |
You can use curl instead. It support ftps, tls, etc. To download a file,
To upload a file,
|
Chris Gransden (337) 1207 posts |
Similar for sftp,
|