Hacker News new | ask | show | jobs
by zoky 52 days ago
FTP is still used quite a bit. For what it’s useful for, nothing has come close to replacing it.
5 comments

SFTP? Don't confuse it with FTP or FTPS - SFTP is a different protocol which runs on top of SSH.
They are not confused. A lot of companies still use FTP internally and for B2B. Many people would be very uncomfortable if they knew how much companies including banks, payment systems, etc... and governments still depended on FTP and clear text authentication. That's even before broaching the subject of which of the applications and daemons in use are being actively maintained.
The main place I see FTP used is on modded video game consoles. 3DS, Switch, PS3, basically all of them get some FTP program early on so you don't need to move a flash drive or SD card back and forth anymore. On PCs and my phone I use sftp or rsync since ssh is pretty much everywhere and becomes very comfortable with a config file with aliases and keys set up.
HTTPS has largely replaced it. Pretty much all files uploaded or downloaded from the internet is going to be done via HTTPS and not FTP.
Only if you ignore the banking industry.
Fair point, but I would assume the AWS S3 by itself is bigger than the FTP/SFTP traffic globally including banks. No idea if it’s true, and I’m not sure we can get reliable stats on this
What do you mean, "for what it’s useful for"? For me, WebDAV has replaced FTP where SFTP hasn't.
Has that caught on? I last used it 15 years ago and it was great but I haven't seen it anywhere
Absolutely. Windows, macOS, and major FLOSS desktop environments support it. Nemo (Cinnamon) and Dolphin (KDE) open WebDAV URLs as directories. Total Commander for Android has a WebDAV plugin.

You can set up a server easily with Apache, including an FTP-style inbox. Here is my config: https://github.com/dbohdan/apache-2.4-webdav. I don't recommend nginx for WebDAV. My main HTTP server, Caddy, has gained WebDAV support since I published this configuration, but I haven't used it in anger.

like in enterprise? the browsers stopped shipping with ftp support I think 5 years ago.
Hosting files to be downloaded via web browser isn’t what it’s useful for. If you’re going to do that, you might as well use… a web server.

FTP is useful for bidirectional file exchange over the Internet. There are other protocols, but they all have drawbacks. SFTP can be used for similar functionality, but it requires users to have SSH access. SMB and NFS don’t really work so well over the Internet and are a pain to configure for multiple users. For setting up accounts dedicated to transferring files, you really can’t beat FTP (or really FTPS, which is just FTP over SSL).

> SFTP can be used for similar functionality, but it requires users to have SSH access.

Security-wise you set it not to run commands (and maybe chroot) and you're done, right? And difficulty-wise isn't granting SSH access very similar to FTP access?

I don't understand the issue.

SSH requires a system account. FTP access can be granted and revoked via a database, or even a text file.
That depends on your server.

But in the most common case a "system account" is a line in two text files, isn't it?

It’s way more of a hassle than that. Things like per-user chroot, managing permissions, restricting access to port 22… all much more difficult with SFTP. With an FTP server like vsftpd, you can just create virtual users and assign them home directories, then everything is just owned by the user running the ftp daemon process.
You might be surprised to learn there are dedicated ftp clients.
sarcasm?
Don't know of a client with that name, but there are plenty of others.