Want more timely Centmin Mod News Updates?
Become a Member

FTP is broken

Discussion in 'Other Centmin Mod Installed software' started by CarpCharacin, Jan 16, 2017.

  1. eva2000

    eva2000 Administrator Staff Member

    43,121
    9,787
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +15,113
    Local Time:
    11:40 AM
    Nginx 1.17.x
    MariaDB 5.5/10.x
    root works with sftp natively nothing to do

    is your ISP ip whitelisted + add to /etc/csf/csf.ignore ?

    fix



    are you uploading individual files ? that if you set filezilla or winscp to simultaneous connections will trigger FAQ item 40 outlined protections - you can alter the value of the threshold outlined instructions in FAQ items 40 & 41 ;)

    so if you had 40 simultaneous connections and 40 files to upload that's 40 connections to pure-ftpd

    workaround/tip



    Best to just upload zip file and extract it on server side. Example i posted at https://community.centminmod.com/posts/31829/

    or quick example of how i upload stuff via sftp as root or pure-ftpd - example xf.zip file upload to /home/nginx/domains/domain.com/zips directory i created and xenforo web root at /home/nginx/domains/domain.com/public
    Code (Text):
    cd /home/nginx/domains/domain.com/zips
    unzip xf.zip
    chown -R nginx:nginx upload
    cd upload
    \cp -Rpf * /home/nginx/domains/domain.com/public
    nprestart
    

    1. So cd in zip directory at /home/nginx/domains/domain.com/zips
    2. unzip xf.zip
    3. change user/group ownership of all files in extracted upload directory to nginx
    4. change into upload directory at /home/nginx/domains/domain.com/zips/upload
    5. copy command to force overwrite with alias disabled and recursively copy with preserved file permssions all files and directories into xenforo installed web root /home/nginx/domains/domain.com/public
    6. restart nginx and php-fpm to clear caches and php zend opcache
    Uploading individual files one at a time is slow compared to uploading zip and extracting on server and copying with overwrite to target location i.e. /home/nginx/domains/domain.com/public

    That's how I upgrade scripts for the past 15+ yrs :)
     
    • Like Like x 1
  2. CarpCharacin

    CarpCharacin Member

    265
    21
    18
    Oct 13, 2016
    Salt Lake City
    Ratings:
    +34
    Local Time:
    6:40 PM
    1.15.x
    MariaDB 10.1
    The filels were being uploaded individually. Next time I will do it as a zip.
    When I try to SFTP in as root it just says
    Code:
    Status:    Connecting to 173.255.217.82...
    Response:    fzSftp started, protocol_version=8
    Command:    open "[email protected]" 22
    Command:    Pass: ****************
    Error:    Authentication failed.
    Error:    Critical error: Could not connect to server
    I changed the root password trying to fix it, but that didn't work.
     
  3. CarpCharacin

    CarpCharacin Member

    265
    21
    18
    Oct 13, 2016
    Salt Lake City
    Ratings:
    +34
    Local Time:
    6:40 PM
    1.15.x
    MariaDB 10.1
    Yes.

    I just set it to limit the simultaneous connections in filezilla too 1, but it still isn't connecting.
     
  4. eva2000

    eva2000 Administrator Staff Member

    43,121
    9,787
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +15,113
    Local Time:
    11:40 AM
    Nginx 1.17.x
    MariaDB 5.5/10.x
    you were blocked probably

    use IP Location Finder | Detailed geolocation data and RESTful API to confirm your ISP ip and then grep csf firewall for your ISP ip address and post output from command - you can mask your isp ip if you want
    Code (Text):
    csf -g yourISP-ipaddress
     
  5. CarpCharacin

    CarpCharacin Member

    265
    21
    18
    Oct 13, 2016
    Salt Lake City
    Ratings:
    +34
    Local Time:
    6:40 PM
    1.15.x
    MariaDB 10.1
    I tried to connect to pureftpd to upgrade my style and 500 files uploaded successfully and then it started doing the same thing. I am just going to wait until it works to finish uploading the files.
     
  6. eva2000

    eva2000 Administrator Staff Member

    43,121
    9,787
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +15,113
    Local Time:
    11:40 AM
    Nginx 1.17.x
    MariaDB 5.5/10.x
    zip file method ;)
     
    • Like Like x 1