在 Debian 上配置 FileZilla(FTP/SFTP 客户端,也可作为服务端使用)通常分两种情况:
sudo apt update
sudo apt install filezilla
filezilla
打开 FileZilla → 顶部输入:
ftp.example.com 或 IP2122点击「快速连接」
FTPSFTP(基于 SSH,更安全)⚠️ 注意:
FileZilla Server 官方仅支持 Windows
Debian 上一般用 vsftpd / proftpd 代替
sudo apt install vsftpd
sudo systemctl enable vsftpd
sudo systemctl start vsftpd
配置:
sudo nano /etc/vsftpd.conf
常用配置:
anonymous_enable=NO
local_enable=YES
write_enable=YES
chroot_local_user=YES
重启:
sudo systemctl restart vsftpd
Debian 自带 SSH 即可:
sudo apt install openssh-server
用 FileZilla 选 SFTP 协议,端口 22
sudo ufw allow 21
sudo ufw allow 22
在 vsftpd 中设置:
pasv_enable=YES
pasv_min_port=40000
pasv_max_port=50000
并开放端口
如果你是指:
可以告诉我具体场景,我可以给你更精准的配置示例。