Want more timely Centmin Mod News Updates?
Become a Member

Install FTP and website files upload

Discussion in 'Install & Upgrades or Pre-Install Questions' started by dooma, Oct 16, 2016.

  1. dooma

    dooma Member

    226
    22
    18
    Oct 15, 2016
    Cairo
    Ratings:
    +27
    Local Time:
    2:41 PM
    Hello,

    I'm trying to follow step 2 at the getting started guide to upload my website files using FileZilla but I always get this error while trying to log in.

    Thanks a lot
     
  2. eva2000

    eva2000 Administrator Staff Member

    31,025
    6,927
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,433
    Local Time:
    10:41 PM
    Nginx 1.13.x
    MariaDB 5.5
  3. dooma

    dooma Member

    226
    22
    18
    Oct 15, 2016
    Cairo
    Ratings:
    +27
    Local Time:
    2:41 PM
    The system auto generated it and I already tried to change it but the same problem. And that's my FileZilla info with passive mode ON, check here please. .. The username is not root (I tried root too) .

    Thanks for your quick answer.
     
  4. eva2000

    eva2000 Administrator Staff Member

    31,025
    6,927
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,433
    Local Time:
    10:41 PM
    Nginx 1.13.x
    MariaDB 5.5
    weird - make sure your isp ip isn't being blocked for login failure attempts. See FAQ items 40 & 41 for details and clues.
     
  5. dooma

    dooma Member

    226
    22
    18
    Oct 15, 2016
    Cairo
    Ratings:
    +27
    Local Time:
    2:41 PM
    Although I'm logging to ssh using root user when I try to write in CSF command, it gives me permission denied. ??

    I checked my domain at intodns and I found that there's an issue with WWW A Record so may it cause a problem ?

    While I'm searching the forum, I found that you don't use FileZilla to upload your files but you use another way to upload your files so can you explain it please, how can I upload my website files over ssh from my personal computer ?

    Thanks alot
     
  6. eva2000

    eva2000 Administrator Staff Member

    31,025
    6,927
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,433
    Local Time:
    10:41 PM
    Nginx 1.13.x
    MariaDB 5.5
    are you ftp into server domain name or server ip ? if you use server ip it should work regardless of whether dns is setup correctly
     
  7. dooma

    dooma Member

    226
    22
    18
    Oct 15, 2016
    Cairo
    Ratings:
    +27
    Local Time:
    2:41 PM
    I'm using over my server public IP.
     
  8. eva2000

    eva2000 Administrator Staff Member

    31,025
    6,927
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,433
    Local Time:
    10:41 PM
    Nginx 1.13.x
    MariaDB 5.5
    using server ip to connect shouldn't be affected by dns domain issues

    try and enable debug messaging in filezilla so you get more info during the connection etc

    filezilla-debug-log.png
     
  9. eva2000

    eva2000 Administrator Staff Member

    31,025
    6,927
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,433
    Local Time:
    10:41 PM
    Nginx 1.13.x
    MariaDB 5.5
    also make sure pure-ftpd server is actually running
    Code (Text):
    service pure-ftpd status
    service pure-ftpd restart
     
  10. dooma

    dooma Member

    226
    22
    18
    Oct 15, 2016
    Cairo
    Ratings:
    +27
    Local Time:
    2:41 PM
    Now, I checked the CSF and it tells me that my IP is already in the allow list so it's not blocked.
    The website centminmod html page was loading fine but now the site can't be reached!.

    the pure-ftpd is active and running, Also, I have updated the debug option of filezilla please check this link

    Thanks for helping me.
     
  11. eva2000

    eva2000 Administrator Staff Member

    31,025
    6,927
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,433
    Local Time:
    10:41 PM
    Nginx 1.13.x
    MariaDB 5.5
    most likely due to all the failed login attempts CSF did a temp ip block on your ISP ip

    from CSF Firewall - CentminMod.com LEMP Nginx web stack for CentOS ensure your ISP ip is both whitelisted in /etc/csf/csf.allow and added to /etc/csf/csf.ignore
    restart CSF Firewall afterwards
    Code (Text):
    csf -r

    usually CSF Firewall on initial install would do this automatically for ip used/detected for initial centmin mod install. If the ISP ip changed since the initial install, then you may have to have the changed ISP ip added

    if you have dynamic ISP ip, then check out CSF Firewall - CentminMod.com LEMP Nginx web stack for CentOS
     
    Last edited: Oct 16, 2016
  12. eva2000

    eva2000 Administrator Staff Member

    31,025
    6,927
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,433
    Local Time:
    10:41 PM
    Nginx 1.13.x
    MariaDB 5.5
    also double check the ip that system is detecting you're logging in from in ssh window type
    Code (Text):
    w

    it should report user and ip detected

    sometimes if you're behind a VPN/web proxy your reported IP might differ from your ISP IP - typing in google 'ip check' will report your IP that server would see
     
  13. dooma

    dooma Member

    226
    22
    18
    Oct 15, 2016
    Cairo
    Ratings:
    +27
    Local Time:
    2:41 PM
    My IP is not blocked and it's at whitelist. Also, I have checked that using command "w" and google ip check and the result is the same IP. WEIRD !
     
  14. eva2000

    eva2000 Administrator Staff Member

    31,025
    6,927
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,433
    Local Time:
    10:41 PM
    Nginx 1.13.x
    MariaDB 5.5
    how did you copy and paste the pure-ftpd username and password details into filezilla, some folks reported their ssh client copy and paste added extra characters etc as well

    pure-ftpd logs to system /var/log/messages and you can grep filter for pure-ftpd to see what username pure-ftpd server saw on their end
    Code (Text):
    grep pure-ftpd /var/log/messages | tail -20

    successful login
    Code (Text):
    [INFO] ftpuser is now logged in

    failed login
    Code (Text):
    [WARNING] Authentication failed for user [ftpuser]
     
  15. eva2000

    eva2000 Administrator Staff Member

    31,025
    6,927
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,433
    Local Time:
    10:41 PM
    Nginx 1.13.x
    MariaDB 5.5
    try highlighting pure-ftpd username and password in sshd and right click copy and paste
     
  16. dooma

    dooma Member

    226
    22
    18
    Oct 15, 2016
    Cairo
    Ratings:
    +27
    Local Time:
    2:41 PM
    When I run this command I got this at my putty many times with many dates. I covered my ISP Ip and the username I created for my ftp.
     
  17. eva2000

    eva2000 Administrator Staff Member

    31,025
    6,927
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,433
    Local Time:
    10:41 PM
    Nginx 1.13.x
    MariaDB 5.5
  18. dooma

    dooma Member

    226
    22
    18
    Oct 15, 2016
    Cairo
    Ratings:
    +27
    Local Time:
    2:41 PM
    Hi,
    CONNECTED Finally. Thank you very much for your effort. The prob may be was with this command :
    pure-pw mkdb

    The prob now is that the site is down! .

    Thanks a lot :)
     
  19. eva2000

    eva2000 Administrator Staff Member

    31,025
    6,927
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,433
    Local Time:
    10:41 PM
    Nginx 1.13.x
    MariaDB 5.5
    or so you didn't need pure-pw mkdb command ?

    strange as most documentation says it's needed
     
  20. dooma

    dooma Member

    226
    22
    18
    Oct 15, 2016
    Cairo
    Ratings:
    +27
    Local Time:
    2:41 PM
    Oh sorry for your confusion. I'm facing this issue for over 30 hours :( .