当在Debian系统上使用FileZilla连接失败时,可以按照以下步骤进行排查和解决:
# 查看防火墙状态
sudo ufw status
# 开启FTP端口(21)
sudo ufw allow 21/tcp
# 重启防火墙
sudo ufw reload
或者,编辑/etc/iptables.rules
文件,确保允许FTP和SFTP端口的规则已添加。
# 检查FTP服务状态
sudo systemctl status vsftpd
# 启动FTP服务
sudo systemctl start vsftpd
# 设置FTP服务开机自启动
sudo systemctl enable vsftpd
/etc/vsftpd.conf
文件中的配置,确保以下设置正确:local_enable=YES
write_enable=YES
chroot_local_user=YES
allow_writeable_chroot=YES
修改后,重启vsftpd服务:
sudo systemctl restart vsftpd
通过以上步骤,通常可以解决在Debian系统上使用FileZilla连接失败的问题。如果问题依然存在,建议详细记录错误信息并寻求专业人士的帮助。
亿速云「云服务器」,即开即用、新一代英特尔至强铂金CPU、三副本存储NVMe SSD云盘,价格低至29元/月。点击查看>>