在 Debian 上配置 FileZilla 站点(FTP/SFTP 连接) 通常有两种情况:
下面分别说明。
sudo apt update
sudo apt install filezilla -y
启动:
filezilla
2122✅ SFTP 实际是 SSH 文件传输,最安全
⚠️ 注意:
FileZilla Server 官方主要支持 Windows
Debian 更推荐用 vsftpd / proftpd
sudo apt install vsftpd -y
sudo systemctl enable vsftpd
sudo systemctl start vsftpd
sudo nano /etc/vsftpd.conf
常用配置:
listen=YES
anonymous_enable=NO
local_enable=YES
write_enable=YES
重启:
sudo systemctl restart vsftpd
如果你只是想传文件到 Debian:
# 直接用 FileZilla 连
协议:SFTP
端口:22
用户:你的 Linux 用户名
密码 / 密钥
✅ 不需要安装任何 FTP 服务
sudo ufw allow 21
sudo ufw allow 22
在 vsftpd 中开启:
pasv_enable=YES
pasv_min_port=30000
pasv_max_port=31000
✅ Debian + FileZilla 客户端 + SFTP(22端口)
如果你是想:
可以告诉我,我给你具体配置示例。