← Back to all services
Ftp Sftp

vsftpd FTP Server Port & Configuration

vsftpd systemctl: vsftpd

Very Secure FTP Daemon. Lightweight, secure FTP server.

🔌 Default Ports

21
tcp
FTP control
20
tcp
FTP data (active mode)
40000-50000
tcp
Passive mode range (configurable)

📦 Installation Command

apt install vsftpd

⚙️ Configuration Files

  • /etc/vsftpd.conf
  • /etc/vsftpd.userlist
  • /etc/vsftpd.chroot_list

📂 Default Directories

  • config: /etc/vsftpd.conf
  • data: /srv/ftp (anonymous) or user home dirs
  • logs: /var/log/vsftpd.log
  • userlist: /etc/vsftpd.userlist

🔐 Default Credentials

Username:ftp (anonymous)
Password:any email (anonymous)
💡 Anonymous disabled by default. Uses system users for auth. Virtual users possible with PAM.

⚠️ Conflicts

proftpdpure-ftpd Port: proftpdPort: pure-ftpdPort: any FTP server

✅ Works With

SSL/TLS certificates

🛡️ Security Notes

Enable TLS (ssl_enable=YES), disable anonymous, use chroot, set passive port range, use fail2ban

❓ Frequently Asked Questions

What port does vsftpd use?
vsftpd uses port 21 for control and port 20 for active mode data transfer.
How to enable FTPS in vsftpd?
Add ssl_enable=YES and configure ssl_cert_file and ssl_private_key_file in vsftpd.conf.
vsftpd passive mode ports?
Configure pasv_min_port and pasv_max_port in vsftpd.conf for passive mode.