Plain FTP sends your username, password, and every file over the network in cleartext. Anyone positioned between you and the server (a shared Wi-Fi network, a compromised router, a corporate proxy) reads it as plain text, no decryption required.
That’s not a caveat for a “security considerations” section at the bottom; it’s the reason not to use plain FTP for anything you’d mind someone else reading.
Here’s what that actually looks like. No FTP server was installed for this page, but the protocol itself is easy to demonstrate: a throwaway TCP listener on loopback, speaking just enough FTP to receive a login, driven by a real Python ftplib client with obviously fake credentials:
# python3 raw-socket listener on 127.0.0.1:21121
# client: ftplib.FTP().login(user="demo_user_NOTREAL", passwd="hunter2_FAKE_DEMO")
RAW BYTES RECEIVED ON THE SERVER SOCKET (exactly what traveled over TCP):
b'USER demo_user_NOTREAL\r\n'
b'PASS hunter2_FAKE_DEMO\r\n'
That’s the entire login exchange, captured on the receiving socket exactly as it arrived on the wire: no decryption, no special tooling, just reading the bytes as they land. Any packet sniffer on the network path sees the same thing. File contents travel the same way once you’re authenticated. Python 3 is the only requirement for repeating the capture above: how-to-install-ftp-server.sh opens a listener on 127.0.0.1, logs in with ftplib using made-up credentials and checks that the USER and PASS lines arrive unencrypted. It installs no FTP server.
Use SFTP or FTPS instead
SFTP (SSH File Transfer Protocol) runs entirely inside an SSH connection: one encrypted channel, one port (22), and it’s usually already available if the server accepts SSH logins at all (install SSHD on Ubuntu if it does not). If ssh user@host works, sftp user@host or scp file user@host: typically works too, with no extra server software to install. Since OpenSSH 9.0, scp itself transfers files over SFTP by default, and the guide to copying files with scp covers its command-line behavior.
FTPS (FTP over TLS) is plain FTP with a TLS layer wrapped around the control and data channels: same commands, same two-port model, but encrypted. Reach for FTPS specifically when you need FTP-protocol compatibility (an existing client, a legacy integration) and can’t switch to SFTP.
Reserve plain FTP for genuinely public, anonymous, read-only content where no credential and no confidential file ever crosses the wire. Even then, SFTP costs nothing extra if SSH is already running on the server.
If you still need vsftpd
These are the standard install and config steps from vsftpd’s own documentation. They were not run on Linux, so treat this section as citation, not tested output:
# Debian/Ubuntu
sudo apt update && sudo apt install vsftpd
# RHEL/CentOS
sudo yum install vsftpd
In /etc/vsftpd.conf on Debian and Ubuntu (path per Debian’s vsftpd.conf manual page) or /etc/vsftpd/vsftpd.conf on RHEL and CentOS (path per CentOS Stream’s vsftpd service file), set anonymous_enable=NO at minimum. If you must run plain FTP, restrict it to a chrooted, read-only, non-credentialed use case. For anything else, configure TLS: ssl_enable=YES with rsa_cert_file/rsa_private_key_file pointing at a real certificate (generated the same way as any TLS certificate, e.g. openssl req -x509 -nodes -days 365 -newkey rsa:2048 -keyout vsftpd.key -out vsftpd.crt), then restart the service.
Is FTP outdated, and does it matter?
FTP is still widely used. That is true, and beside the point: FTP being common doesn’t make sending passwords in cleartext acceptable. The question that matters is whether you need confidentiality. For credentials or private data the answer is always yes, and SFTP or FTPS gets you there for no meaningful extra effort over plain FTP.