PDA

View Full Version : My users can only FTP using SFTP


savy2k
30th July 2010, 10:23
I have had this problem since I installed ISPConfig. Noone can FTP in to their account except through SFTP. That's no big deal to me but most of my customers don't even know what that is. Those that do use a FTP client that doesn't support SFTP. This is a thorn I would love to have removed.

As always, gratitude a plenty.
Randy:confused:

Oops, I almost forgot.
Redhat 9.0
ISPConfig 2.2.27
Installed using Perfect Server instructions from Falko

till
30th July 2010, 11:42
SFTP is a protocol that belongs to the SSH and not FTP server. So most likely the FTP server is not running.

Please post the output of:

netstat -tap | grep ftp

savy2k
30th July 2010, 16:22
[root@athena ~]# netstat -tap | grep ftp
tcp 0 0 *:ftp *:* LISTEN 8454/proftpd: (acce

I can ftp using the webFTP but not using a FTP client.

till
30th July 2010, 18:51
I can ftp using the webFTP but not using a FTP client.

Ok. This is a very good information as this means that there rea no issues with the FTP server. If webFTP works (which is a normal FTP client) but no external clients, then there is a firewall problem.

Please try to use active and passive FTP with the external FTP client.

savy2k
31st July 2010, 00:43
I looked all through my iptables and I pasted the only reference to FTP below.

PAROLE tcp -- anywhere anywhere tcp dpt:ftp

I don't know what it means by PAROLE.

Oh, BTW, I tried using passive mode but no luck

savy2k
31st July 2010, 06:50
Til, I was just thinking. It's not like I can't connect to the server using FTP I just can't authenticate. Geez, I'm sorry I should have mention that earlier. I don't know what I was thinking. That clearly changes everything. I assure you the last thing I want to do is waste your time.

Randy

till
31st July 2010, 09:42
Please try active and passive FTP.

savy2k
31st July 2010, 14:50
I just tried both active and passive mode and I get the same result with either one.

I don't understand why there is nothing in the FTP log. Shouldn't something show up somewhere from the attempts I have made to login?

falko
31st July 2010, 15:31
Maybe there's something in auth.log.
Also, I'd try to switch off the firewall for testing purposes.

savy2k
31st July 2010, 17:23
Well, I typed the following commands

# service iptables save
# service iptables stop
# chkconfig iptables off

I still wasn't able to login using Xproftp

:(

till
1st August 2010, 17:07
Which error messages do you get in the proftpd / vsftpd log or the messages log when you try to connect to FTP?

savy2k
3rd August 2010, 03:23
The proftpd.log is empty. There is no vsftpd.log and in the messages log I get

Aug 2 18:11:42 Myserver proftpd[31354]: Myserver.domain.tld(::ffff:76.232.119.148[::ffff:76.232.119.148]) - FTP session opened.
Aug 2 18:11:42 Myserver proftpd[31354]: Myserver.domain.tld (::ffff:76.232.119.148[::ffff:76.232.119.148]) - no such user 'admin'
Aug 2 18:12:15 Myserver proftpd[31388]: Myserver.domain.tld (::ffff:76.232.119.148[::ffff:76.232.119.148]) - FTP session opened.

Connecting to: myserver.domain.tld
220 ProFTPD 1.3.1 Server (ProFTPD server) [::ffff:001.002.003.004]
331 Password required for admin
530 Login incorrect.
Connection Failed: myserver.domain.tld
Connecting to: myserver.domain.tld
220 ProFTPD 1.3.1 Server (ProFTPD server) [::ffff:001.002.003.004]
331 Password required for randy
530 Login incorrect.
Connection Failed: myserver.domain.tld

falko
3rd August 2010, 18:16
Is admin a real system user account, or is it maybe your ISPConfig login? Maybe you mixed up ISPConfig users and system users?

savy2k
3rd August 2010, 22:56
Well you are right, admin isn't a real system user account, but randy is and I can't login with that user either.

I was just thinking, I can FTP as admin if I use WebFTP

till
4th August 2010, 09:40
ISPConfig FTP users have normally a username prefix, so the username that you use for FTP is something like web22_admin and not just admin.

savy2k
5th August 2010, 06:00
I use web2_randy when I attempt to FTP using XProFTP.

falko
6th August 2010, 11:31
Did you enable FTP for web2?

savy2k
6th August 2010, 16:13
Yes, I did.