My users can only FTP using SFTP

Discussion in 'Installation/Configuration' started by savy2k, Jul 30, 2010.

  1. savy2k

    savy2k New Member

    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
     
    Last edited: Jul 30, 2010
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    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
     
  3. savy2k

    savy2k New Member

    [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.
     
    Last edited: Jul 30, 2010
  4. till

    till Super Moderator Staff Member ISPConfig Developer

    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.
     
  5. savy2k

    savy2k New Member

    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
     
    Last edited: Jul 31, 2010
  6. savy2k

    savy2k New Member

    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
     
  7. till

    till Super Moderator Staff Member ISPConfig Developer

    Please try active and passive FTP.
     
  8. savy2k

    savy2k New Member

    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?
     
    Last edited: Jul 31, 2010
  9. falko

    falko Super Moderator Howtoforge Staff

    Maybe there's something in auth.log.
    Also, I'd try to switch off the firewall for testing purposes.
     
  10. savy2k

    savy2k New Member

    Well, I typed the following commands

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

    I still wasn't able to login using Xproftp

    :(
     
  11. till

    till Super Moderator Staff Member ISPConfig Developer

    Which error messages do you get in the proftpd / vsftpd log or the messages log when you try to connect to FTP?
     
  12. savy2k

    savy2k New Member

    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
     
    Last edited: Aug 3, 2010
  13. falko

    falko Super Moderator Howtoforge Staff

    Is admin a real system user account, or is it maybe your ISPConfig login? Maybe you mixed up ISPConfig users and system users?
     
  14. savy2k

    savy2k New Member

    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
     
    Last edited: Aug 3, 2010
  15. till

    till Super Moderator Staff Member ISPConfig Developer

    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.
     
  16. savy2k

    savy2k New Member

    I use web2_randy when I attempt to FTP using XProFTP.
     
  17. falko

    falko Super Moderator Howtoforge Staff

    Did you enable FTP for web2?
     
  18. savy2k

    savy2k New Member

    Yes, I did.
     

Share This Page