FileZilla 连不上 Debian,常见原因和对应的排查办法如下,你按顺序来就行:
Debian 能不能 ping 通
ping Debian的IP
确认 IP 和端口
2122Debian 一般自带 SSH
确认 SSH 开了:
systemctl status ssh
没开就:
sudo systemctl start ssh
sudo systemctl enable ssh
FileZilla 设置:
如果连不上:
sudo ufw status
若 22 没放行:
sudo ufw allow 22
Debian 默认没装 FTP 服务
检查是否装了:
systemctl status vsftpd
没装:
sudo apt install vsftpd
sudo systemctl enable --now vsftpd
防火墙放行 21:
sudo ufw allow 21
FileZilla:
/etc/ssh/sshd_config 里:PermitRootLogin yes
然后 sudo systemctl restart ssh把 FileZilla 底部的错误日志 发我,我可以直接告诉你哪一步错了。
你是: