我在服务器上托管了一个网站,并在该服务器上创建了一个 ftp 用户。现在,我尝试从 vps 访问该 ftp,但是当我输入密码时,它说身份验证失败。
[root@vps ~]# ftp ftp.asifrazaprep.com
Connected to ftp.asifrazaprep.com (174.142.92.112).
220---------- Welcome to Pure-FTPd [privsep] [TLS] ----------
220-You are user number 6 of 50 allowed.
220-Local time is now 06:21. Server port: 21.
220-This is a private system - No anonymous login
220-IPv6 connections are also welcome on this server.
220 You will be disconnected after 15 minutes of inactivity.
Name (ftp.asifrazaprep.com:root): testuser
331 User testuser OK. Password required
Password:**********
530 Login authentication failed
Login failed.
Remote system type is UNIX.
Using binary mode to transfer files.
ftp>
这是我在日志文件 grep fpt /var/log/messages 中得到的内容
Mar 27 17:06:14 vps xinetd[1512]: START: ftp pid=28250 from=208.111.39.5
Mar 27 17:06:14 vps proftpd[28250]: vps.server.com (208.111.39.5[208.111.39.5]) - FTP session opened.
Mar 27 17:06:14 vps proftpd[28250]: vps.server.com (208.111.39.5[208.111.39.5]) - client sent too-long command, ignoring
Mar 27 17:06:16 vps proftpd[28250]: vps.server.com (208.111.39.5[208.111.39.5]) - FTP session closed.
Mar 27 17:06:16 vps xinetd[1512]: EXIT: ftp status=0 pid=28250 duration=2(sec)
Mar 27 17:06:16 vps xinetd[1512]: START: ftp pid=28251 from=208.111.39.5
Mar 27 17:06:16 vps proftpd[28251]: vps.server.com (208.111.39.5[208.111.39.5]) - FTP session opened.
Mar 27 17:06:16 vps proftpd[28251]: vps.server.com (208.111.39.5[208.111.39.5]) - FTP session closed.
Mar 27 17:06:16 vps xinetd[1512]: EXIT: ftp status=0 pid=28251 duration=0(sec)
答案1
3 月 27 日 17:06:14 vps proftpd[28250]: vps.server.com (208.111.39.5[208.111.39.5]) - 客户端发送的命令太长,忽略
也许密码太长了?
您确实应该知道您的 FTP 服务器将其登录和身份验证日志写入何处;这是至关重要的信息。