Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I have a web hosted on a sever where i have created an ftp user. now i m trying to access that ftp from a vps but when i give password it says me authentication faild.

[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> 

this is what i m getting in log file 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)
share|improve this question
    
Did you look at the logs for pureftpd, as well as the auth.log (or whatever the equivalent is for the distro you're using)? –  cjc Mar 29 '12 at 13:52
    
Can you update your question with the log entries? Putting it in comments leaves the formatting almost unreadable. –  cjc Mar 29 '12 at 14:09
    
If you installed this from a package, it was probably compile withparanoidmsg - which means that for whatever reason your login was rejected, the error will stay the same. Those logfile entries look like they are generated by BIND or somesuch. Which logfile are you looking at? –  Adam Thompson Mar 29 '12 at 14:11
    
That's not the relevant log, as those are DNS log entries. What distro are you using? Do a cat /etc/issue.net if you're not sure. The log files you're interested in are the ones associated with login failures and with the pure-ftpd service in particular. –  cjc Mar 29 '12 at 14:32
    
this is what i get by running issue command:..... CentOS release 5.6 (Final) Kernel \r on an \m .... i jst got from google that ftp logs are in messages file thats why i checked there. –  Kashif Mar 29 '12 at 14:45
show 1 more comment

1 Answer

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

Perhaps the password was too long ?

You really should know where your FTP server writes its login and authentication logs; this is crucial information.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.