在 Debian 上“连不上 FileZilla”通常指两种情况之一:
- Debian 作为客户端,连不上 FileZilla Server(或任意 FTP/SFTP 服务器)
- Debian 作为服务器,FileZilla 客户端连不上它
下面按常见原因逐一说明,你可以对照排查。
一、Debian 连不上 FileZilla Server(客户端问题)
1. 网络不通
ping 服务器IP
- 不通:防火墙、网络、IP 错误
- 通但连不上:继续看下面
2. FTP / SFTP 端口错误
- FTP:21
- SFTP:22(注意 SFTP ≠ FTPS)
- FTPS:21 + 加密
FileZilla 中要选对协议:
- FTP
- FTP over TLS (FTPS)
- SFTP(基于 SSH)
3. 被动模式(PASV)被防火墙挡
FTP 被动模式常见失败表现:
解决:
- FileZilla → 站点管理器 → 传输设置 → 被动
- 或服务器端开放 PASV 端口范围
4. Debian 没有 FTP 客户端(误区)
Debian 本身不需要 FileZilla 软件才能连 FTP
可用:
ftp ip
sftp user@ip
如果你是说“装不了 FileZilla”,那是另一回事。
5. 代理 / 公司网络限制
二、FileZilla 连不上 Debian(服务器问题)
1. Debian 没开 SSH / FTP 服务
检查:
systemctl status ssh
SFTP 依赖 SSH。
FTP 服务示例:
systemctl status vsftpd
2. 防火墙挡了
ufw status
iptables -L
开放:
ufw allow 22
ufw allow 21
3. Debian 在云服务器
4. SSH 禁止密码登录
grep PasswordAuthentication /etc/ssh/sshd_config
若为 no,FileZilla 会连不上。
5. IP / 主机名错误
三、快速自检清单
✅ 能 ping 通
✅ 端口开放
✅ 协议选对
✅ 防火墙/安全组放行
✅ 服务在运行
如果你能补充一句:
- Debian 是客户端还是服务器
- 报错内容(FileZilla 日志最好)
- 本地 / 云服务器
我可以直接帮你定位到具体哪一步。