FTP User Cannot Login

9 posts / 0 new
Last post
#1 Mon, 09/15/2014 - 07:28
paul.kelly

FTP User Cannot Login

I have set up a FTP user (for whole site) and try to connect, but the password is being refused:

Here is the log: Sep 15 13:20:34 ns2 sshd[19505]: pam_unix(sshd:auth): authentication failure; logname= uid=0 euid=0 tty=ssh ruser= rhost=... user=user.name Sep 15 13:20:35 ns2 sshd[19505]: Failed password for user.name from .... port 3907 ssh2 Sep 15 13:20:35 ns2 sshd[19506]: fatal: Read from socket failed: Connection reset by peer

I am using ProFTPd version 1.33.

Anyone with thoughts?

Mon, 09/15/2014 - 10:02
andreychek

Howdy,

Hmm, it appears that the above authentication failure is coming from SSH, rather than ProFTPd. Is your client configured to connect to FTP on port 21?

-Eric

Mon, 09/15/2014 - 10:18
paul.kelly

Hi Eric,

I use SFTP for root access, so tied that!

Here is the response when I tried variations of FTP:

Sep 15 13:20:34 ns2 sshd[19505]: pam_unix(sshd:auth): authentication failure; logname= uid=0 euid=0 tty=ssh ruser= rhost=*.*.*.*  user=user.name
Sep 15 13:20:35 ns2 sshd[19505]: Failed password for user.name from *.*.*.* port 3907 ssh2
Sep 15 13:25:09 ns2 sshd[19904]: pam_unix(sshd:auth): authentication failure; logname= uid=0 euid=0 tty=ssh ruser= rhost=*.*.*.*  user=user.name
Sep 15 13:25:11 ns2 sshd[19904]: Failed password for user.name from *.*.*.* port 1776 ssh2
Sep 15 13:29:14 ns2 sshd[20385]: Accepted password for user.name from *.*.*.* port 5108 ssh2
Sep 15 13:29:14 ns2 sshd[20385]: pam_unix(sshd:session): session opened for user user.name by (uid=0)
Sep 15 13:29:14 ns2 sshd[20385]: pam_unix(sshd:session): session closed for user user.name
Sep 15 13:29:19 ns2 sshd[20389]: Accepted password for user.name from *.*.*.* port 1916 ssh2
Sep 15 13:29:19 ns2 sshd[20389]: pam_unix(sshd:session): session opened for user user.name by (uid=0)
Sep 15 13:29:20 ns2 sshd[20389]: pam_unix(sshd:session): session closed for user user.name
Sep 15 14:24:30 ns2 sshd[25158]: Accepted password for user.name from *.*.*.* port 4275 ssh2
Sep 15 14:24:30 ns2 sshd[25158]: pam_unix(sshd:session): session opened for user user.name by (uid=0)
Sep 15 14:24:30 ns2 sshd[25158]: pam_unix(sshd:session): session closed for user user.name
Sep 15 14:24:35 ns2 sshd[25165]: Accepted password for user.name from *.*.*.* port 4504 ssh2
Sep 15 14:24:35 ns2 sshd[25165]: pam_unix(sshd:session): session opened for user user.name by (uid=0)
Sep 15 14:24:36 ns2 sshd[25165]: pam_unix(sshd:session): session closed for user user.name
Sep 15 14:27:18 ns2 sshd[25520]: Invalid user support from *.*.*.*
Sep 15 14:27:18 ns2 sshd[25521]: input_userauth_request: invalid user support
Sep 15 14:27:19 ns2 sshd[25520]: pam_succeed_if(sshd:auth): error retrieving information about user support
Sep 15 14:27:21 ns2 sshd[25520]: Failed password for invalid user support from *.*.*.* port 7120 ssh2
Sep 15 14:27:41 ns2 sshd[25522]: pam_unix(sshd:auth): authentication failure; logname= uid=0 euid=0 tty=ssh ruser= rhost=*.*.*.*  user=user.name
Sep 15 14:27:43 ns2 sshd[25522]: Failed password for user.name from *.*.*.* port 1687 ssh2
Sep 15 14:28:13 ns2 sshd[25577]: pam_unix(sshd:auth): authentication failure; logname= uid=0 euid=0 tty=ssh ruser= rhost=*.*.*.*  user=user.name
Sep 15 14:28:16 ns2 sshd[25577]: Failed password for user.name from *.*.*.* port 7038 ssh2
Sep 15 14:29:29 ns2 sshd[25644]: Accepted password for user.name from *.*.*.* port 7582 ssh2
Sep 15 14:29:29 ns2 sshd[25644]: pam_unix(sshd:session): session opened for user user.name by (uid=0)
Sep 15 14:29:30 ns2 sshd[25644]: pam_unix(sshd:session): session closed for user user.name
Sep 15 14:29:35 ns2 sshd[25648]: Accepted password for user.name from *.*.*.* port 2494 ssh2
Sep 15 14:29:35 ns2 sshd[25648]: pam_unix(sshd:session): session opened for user user.name by (uid=0)
Sep 15 14:29:35 ns2 sshd[25648]: pam_unix(sshd:session): session closed for user user.name
Sep 15 16:10:34 ns2 sshd[3701]: Accepted password for user.name from *.*.*.* port 5984 ssh2
Sep 15 16:10:34 ns2 sshd[3701]: pam_unix(sshd:session): session opened for user user.name by (uid=0)
Sep 15 16:10:34 ns2 sshd[3701]: pam_unix(sshd:session): session closed for user user.name
Sep 15 16:10:40 ns2 sshd[3741]: Accepted password for user.name from *.*.*.* port 1595 ssh2
Sep 15 16:10:40 ns2 sshd[3741]: pam_unix(sshd:session): session opened for user user.name by (uid=0)
Sep 15 16:10:40 ns2 sshd[3741]: pam_unix(sshd:session): session closed for user user.name
Sep 15 16:10:42 ns2 proftpd: pam_unix(proftpd:session): session opened for user user.name by (uid=0)
Sep 15 16:10:42 ns2 proftpd[3762]: 149.255.100.106 (::ffff:*.*.*.*[::ffff:*.*.*.*]) - USER user.name: Login successful.
Sep 15 16:11:30 ns2 proftpd: pam_unix(proftpd:session): session opened for user user.name by (uid=0)
Sep 15 16:11:30 ns2 proftpd[4080]: 149.255.100.106 (::ffff:*.*.*.*[::ffff:*.*.*.*]) - USER user.name: Login successful.

Although it shows successful, no files are listed!!

Mon, 09/15/2014 - 12:30
andreychek

Howdy,

Most of the log entries I see above are for SSH, which show a variety of errors.

The only ones that aren't errors are the last 4, which are for ProFTPd... and those actually appear to just be notification messages that it worked properly.

ProFTPd is showing that "user.domain" is logging in successfully.

When using an FTP client, and connecting to port 21 -- what error is it that you are seeing in your client?

-Eric

Mon, 09/15/2014 - 15:39 (Reply to #4)
paul.kelly

Doesn't SFTP use ssh?

No errors on FTP, just this:

MLSD
Response: 230 User user.name logged in
Command: SYST
Response: 215 UNIX Type: L8
Command: FEAT
Response: 211-Features:
Response: MDTM
Response: MFMT
Response: LANG fr-FR;ko-KR;zh-TW;en-US;bg-BG;ru-RU;zh-CN;it-IT;ja-JP
Response: TVFS
Response: UTF8
Response: MFF modify;UNIX.group;UNIX.mode;
Response: MLST modify*;perm*;size*;type*;unique*;UNIX.group*;UNIX.mode*;UNIX.owner*;
Response: REST STREAM
Response: SIZE
Response: 211 End
Command: OPTS UTF8 ON
Response: 200 UTF8 set to on
Status: Connected
Status: Retrieving directory listing...
Command: PWD
Response: 257 "/" is the current directory
Command: TYPE I
Response: 200 Type set to I
Command: PASV
Response: 227 Entering Passive Mode (*,*,*,*,238,56).
Command:

But no files list!

Tue, 09/16/2014 - 09:45
andreychek

Howdy,

Does it appear to be hanging or timing out when it tries to list the files?

Or does it appear that it's just not seeing any files?

-Eric

Tue, 09/16/2014 - 09:57
paul.kelly

I am using Filezilla client.

In the file list, it shows as not connected. After (30?) seconds, it times out

Tue, 09/16/2014 - 11:03
andreychek

Since you're seeing a timeout, you're likely running into the problem here in the section "FTP Service isn't working":

https://www.virtualmin.com/documentation/web/faq

Wed, 09/17/2014 - 08:08
paul.kelly

That did it - many thanks!

I missed that advice whilst searching the site!

Topic locked