Welcome to Centmin Mod Community
Register Now

Can not connect FTP on CentOS 6.8 7.2 x64

Discussion in 'Other Centmin Mod Installed software' started by Manhhailua, Jul 7, 2016.

  1. Manhhailua

    Manhhailua Member

    39
    2
    8
    Jul 7, 2016
    Hanoi
    Ratings:
    +5
    Local Time:
    9:00 PM
    1.11.1
    10.0.x
    I successfully installed Centmin to my VPS. I started with create a domain. Everything was fine but the FTP connection, I cannot connect to Pure-FTPD using created username and password:
    IP: 45.32.xxx
    FTP Username: xxx
    Password: xxxx
     
    Last edited by a moderator: Jul 7, 2016
  2. eva2000

    eva2000 Administrator Staff Member

    29,024
    6,587
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +9,778
    Local Time:
    12:00 AM
    Nginx 1.13.x
    MariaDB 5.5
    I wouldn't publicly post your login info ! make sure to change username and password ASAP
    • Did you let the script generate a password for you or set your own ?
    • Did you make sure to enable explicit TLS/SSL mode and enable PASV passive mode like in 1st post here.
    • Which FTP client ? As not all FTP clients support FTP explicit TLS/SSL mode only clients listed at bottom of this post.
    From 1st post here, try the pure-pw commands to display pure-ftpd user details and change the user password. Also pure-pw manual is here and http://download.pureftpd.org/pub/pure-ftpd/doc/README.Virtual-Users

    list all pure-ftpd created virtual FTP users
    Code (Text):
    pure-pw list


    Code (Text):
    pure-pw list
    ftpuser /usr/local/nginx/html/./
    ftpuser2 /usr/local/nginx/html/./
    ftpuser3 /usr/local/nginx/html/./
    ftpuser4 /home/nginx/domains/domain1.com/./
    ftpuser6 /home/nginx/domains/sub.domain1.com/./
    ftpuser5 /home/nginx/domains/domain2.com/./


    to delete virtual FTP user
    Code (Text):
    pure-pw userdel FTPUSERNAME
    pure-pw mkdb


    change virtual FTP user's password
    Code (Text):
    pure-pw passwd FTPUSERNAME
    pure-pw mkdb


    show full details for an specific pure-ftpd virtual FTP user
    Code (Text):
    pure-pw show FTPUSERNAME


    password is encrypted

    Code (Text):
    pure-pw show ftpuser5
    
    Login : ftpuser5
    Password : $1$msgfvdN0$51dhLdPGiCQpQEwtZ30kF1
    UID : 500 (nginx)
    GID : 500 (nginx)
    Directory : /home/nginx/domains/domain2.com/./
    Full name :
    Download bandwidth : 0 Kb (unlimited)
    Upload bandwidth : 0 Kb (unlimited)
    Max files : 0 (unlimited)
    Max size : 0 Mb (unlimited)
    Ratio : 0:0 (unlimited:unlimited)
    Allowed local IPs :
    Denied local IPs :
    Allowed client IPs :
    Denied client IPs :
    Time restrictions : 0000-0000 (unlimited)
    Max sim sessions : 0 (unlimited)


    Filezilla Example



    with transfer settings set passive mode with Host = your server ip

    Filezilla settings

    Screenshots at Nginx - How to create FTP account for an domain? | Centmin Mod Community

    output for these 2 commands where USERNAME is the pure-ftpd virtual FTP username and /home/nginx/domains/domain1.com where domain1.com is your domain listed
    Code (Text):
    pure-pw list
    pure-pw show USERNAME
    ls -lahgR /home/nginx/domains/domain1.com
    

    example
    Code (Text):
     pure-pw list
    user1 /home/nginx/domains/domain1.com/./
    

    Password listed is shown encrypted so not the actual password
    Code (Text):
    pure-pw show user1
    
    Login : user1
    Password : $6$Q5lI1poh5aeEIDz0$GfbOwVYB5/sagwRAVo2L21rEb4qME0BKiPRtckJ/m4mdmPqA1kpuCjp2syH56Yvn2/DQy.lH4bVgOpAD6Ff8Y0
    UID : 1000 (nginx)
    GID : 1000 (nginx)
    Directory : /home/nginx/domains/domain1.com/./
    Full name :
    Download bandwidth : 0 Kb (unlimited)
    Upload bandwidth : 0 Kb (unlimited)
    Max files : 0 (unlimited)
    Max size : 0 Mb (unlimited)
    Ratio : 0:0 (unlimited:unlimited)
    Allowed local IPs :
    Denied local IPs :
    Allowed client IPs :
    Denied client IPs :
    Time restrictions : 0000-0000 (unlimited)
    Max sim sessions : 0 (unlimited)

    /home/nginx/domains/domain1.com permissions
    Code (Text):
    ls -lahgR /home/nginx/domains/domain1.com
    /home/nginx/domains/domain1.com:
    total 4.0K
    drwxr-s--- 6 nginx 56 May 24 05:14 .
    drwxr-s--- 4 nginx 45 May 24 05:14 ..
    drwxr-s--- 2 nginx 6 May 24 05:14 backup
    drwxr-s--- 2 nginx 39 May 24 05:14 log
    drwxr-s--- 2 nginx 6 May 24 05:14 private
    drwxr-s--- 2 nginx 4.0K May 24 05:14 public
    
    /home/nginx/domains/domain1.com/backup:
    total 0
    drwxr-s--- 2 nginx 6 May 24 05:14 .
    drwxr-s--- 6 nginx 56 May 24 05:14 ..
    
    /home/nginx/domains/domain1.com/log:
    total 0
    drwxr-s--- 2 nginx 39 May 24 05:14 .
    drwxr-s--- 6 nginx 56 May 24 05:14 ..
    -rw-r--r-- 1 nginx 0 May 24 05:14 access.log
    -rw-r--r-- 1 nginx 0 May 24 05:14 error.log
    
    /home/nginx/domains/domain1.com/private:
    total 0
    drwxr-s--- 2 nginx 6 May 24 05:14 .
    drwxr-s--- 6 nginx 56 May 24 05:14 ..
    
    /home/nginx/domains/domain1.com/public:
    total 48K
    drwxr-s--- 2 nginx 4.0K May 24 05:14 .
    drwxr-s--- 6 nginx 56 May 24 05:14 ..
    -rw-r----- 1 nginx 1.6K May 24 05:14 403.html
    -rw-r----- 1 nginx 1.6K May 24 05:14 404.html
    -rw-r----- 1 nginx 2.1K May 24 05:14 500.html
    -rw-r----- 1 nginx 2.1K May 24 05:14 502.html
    -rw-r----- 1 nginx 2.2K May 24 05:14 503.html
    -rw-r----- 1 nginx 7.6K May 24 05:14 503.jpg
    -rw-r----- 1 nginx 2.1K May 24 05:14 504.html
    -rw-r----- 1 nginx 2.2K May 24 05:14 50x.html
    -rw-r----- 1 nginx 1.4K May 24 05:14 index.html
    -rw-r----- 1 nginx 1.7K May 24 05:14 maintenance.html
    

    also check if your ip you connect from has been banned via
    Code (Text):
    csf -g IPADDRESS

    whitelist ip if you haven't already
    Code (Text):
    csf -a IPADDRESS


    also check your pure-ftpd logged messages in /var/log/messages
    Code (Text):
    awk '/pure-ftpd:/' /var/log/messages
     
    • Like Like x 1
  3. Manhhailua

    Manhhailua Member

    39
    2
    8
    Jul 7, 2016
    Hanoi
    Ratings:
    +5
    Local Time:
    9:00 PM
    1.11.1
    10.0.x
    I've changed the above password and reconnect. It's successful with FileZilla FTP Client but Webstorm.
    [​IMG]
    [got no idea why my image cannot display]
    I tried create a new domain with new ftp user and auto generate random password then the connection was ok with only FileZilla FTP Client. But I do want to connect successfully in Webstorm (it's my major development IDE).
     
    Last edited: Jul 7, 2016
  4. Manhhailua

    Manhhailua Member

    39
    2
    8
    Jul 7, 2016
    Hanoi
    Ratings:
    +5
    Local Time:
    9:00 PM
    1.11.1
    10.0.x
    It's okay now. I have to disable TLS/SSL Encrypted Mode. Is there any risky problem caused by my action?