在 Debian 上登录 FTPServer(FTP 服务器),通常取决于你使用的 FTP 服务类型和登录方式。下面我按常见情况说明,你可以对照使用。
Debian 常见 FTP 服务端有:
先确认是否安装并运行:
systemctl status vsftpd
# 或
systemctl status proftpd
sudo apt update
sudo apt install ftp
ftp 服务器IP
示例:
ftp 192.168.1.100
然后输入:
默认支持:
sudo apt install lftp
登录:
lftp ftp://用户名@服务器IP
示例:
lftp ftp://user1@192.168.1.100
只要是 Debian 系统用户即可:
cat /etc/passwd | grep 用户名
测试登录:
ftp localhost
用户名:
anonymous
或
ftp
密码:
a@a.com)配置文件位置:
/etc/vsftpd.conf
local_enable=YES # 允许本地用户登录
write_enable=YES # 允许上传
anonymous_enable=NO # 是否允许匿名
修改后重启服务:
sudo systemctl restart vsftpd
✅ 检查:
cat /etc/vsftpd.conf | grep local_enable
sudo ufw allow 21
sudo systemctl start vsftpd
那登录方式不同,需要:
lftp
> set ftp:ssl-force true
> set ssl:verify-certificate no
> connect ftp://服务器IP
或使用 FileZilla → 协议选 FTP over TLS
你可以直接告诉我:
我可以一步一步帮你排查 ✅