How to Install, Configure and Secure FTP Server in CentOS 7 – [Comprehensive Guide]

If You Appreciate What We Do Here On TecMint, You Should Consider:

  1. Stay Connected to: Twitter | Facebook | Google Plus
  2. Subscribe to our email updates: Sign Up Now
  3. Get your own self-hosted blog with a Free Domain at ($3.45/month).
  4. Become a Supporter - Make a contribution via PayPal
  5. Support us by purchasing our premium books in PDF format.
  6. Support us by taking our online Linux courses

We are thankful for your never ending support.

Aaron Kili

Aaron Kili is a Linux and F.O.S.S enthusiast, an upcoming Linux SysAdmin, web developer, and currently a content creator for TecMint who loves working with computers and strongly believes in sharing knowledge.

Your name can also be listed here. Got a tip? Submit it here to become an TecMint author.

RedHat RHCE and RHCSA Certification Book
Linux Foundation LFCS and LFCE Certification Preparation Guide

You may also like...

40 Responses

  1. sri says:

    I have given ftp home folder at /opt, users unable to delete files in they ftp folder.

  2. orang timur says:

    I was follow this tutorial step by step until next tutorial with securing ftp server with tls/ssl. on my local server is working like charm but. when i try to remote with ftp client tool like filezilla its error with command unrouted and illegal port.

    how to fix it?

    my ftp server behind the NAT of mikrotik router. thanks in advanced

  3. M Sai Prasad says:

    Hi Ravi

    Thank for the nice writeup.

    Does it make more sense to use firewall-cmds without “–zone=pubilc” so that it can be added to active and default zones ?

    Regards,
    Sai Prasad

    • Ravi Saive says:

      @Sai,

      Say thanks to our author Aaron, who create this easy to follow tutorial for users like you..

      Yes, its not mandatory to add “–zone=pubilc” everytime with firewalld commands..

  4. tommi says:
    # semanage boolean -m ftpd_full_access --on 
    

    is not working out the box, it required seemange fcontext and other stuff including restorecon.

  5. Linksys Suppport says:

    I am using FTP for sharing files between my Computer and Oppo device I was securing my FTP server by using the following thing that’s is Disable Standard FTP, strong encryption, using larger password, a correct antivirus installed on the computer, File & folder encryption etc.

    This helps me you can also try this if you are using FTP between smartphone and Computer. If anyone has a Router’s issue and facing a problem with the Router’s network follow Linksys Support for a solution because it helps me to fix my server and IP address issue when I was using FTP through my Router’s network help.

  6. Dan Kaufman says:

    Worked like a charm! Thanks, Ravi!

  7. Belo says:

    I get an error at step 1(2) – systemct1: command not found. Any thoughts?

  8. helwie ahmad says:

    Please update your tutorial, its not compatible with latest version.

  9. Thiago says:

    Hi Aaron. Thanks for the tips. It’s very helpful, but I have a problem in the Step 5. I did it like you wrote but when I connect in the FTP I continue to go in the folder “/home/$myuser”.

Got something to say? Join the discussion.

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.