Debian 下 vsftpd(Very Secure FTP Daemon) 的默认端口是 21(FTP 控制连接端口)。
补充说明:
vsftpd.conf 中手动指定范围,例如:pasv_enable=YES
pasv_min_port=30000
pasv_max_port=31000
ss -lntp | grep :21
# 或
netstat -lntp | grep :21
如果想改成其他端口(如 2121):
listen_port=2121
然后重启服务:
sudo systemctl restart vsftpd
如果你需要,我也可以帮你排查 Debian + vsftpd 连接/防火墙/被动模式 的常见问题。