How to Secure a FTP Server Using SSL/TLS for Secure File Transfer in CentOS 7

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.95/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...

6 Responses

  1. Jesper says:

    Dear Aaron,

    Great article.

    I did all steps but unfortunately Filezilla says it can’t retrieve directory listing when connecting to the FTP server. Do you have any idea what could be wrong? I’m installing on Fedora 25 Server.

  2. Haneef says:

    Dear Aaron

    Thanks for sharing above article, I felt very useful. I followed the instruction and everything went smoothly, while I try to connect using FileZilla showing an error “Error: GnuTLS error -15: An unexpected TLS packet was received. Error: Could not connect to server, need your help and I tried with WinSCP software, showing an another error ”

    Server asks for authentication with a client certificate.
    Using TLSv1.2, cipher TLSv1/SSLv3: DHEGH-RSA-AES256-GCM-SHA384, 2048 bit RSA, DHEGH-RSA-AES256-GCM-SHA384 TLSv1.2 Kx=DHEGH Au=RSA Enc=AESGCM(256) Mac=AEAD

    SSL3 alert write: fatal: protocol version
    wrong version number
    Disconnected from server
    Connection failed.

    • Aaron Kili says:

      @Haneef

      Welcome, thanks for appreciating our work. Try to use SSL/TLS version 1.2 by setting the directives below:
      ssl_tlsv1_2=YES
      ssl_sslv2=NO
      ssl_sslv3=NO

      Additionally, if you set the debug option, check out the vsftpd log file for more info.

  3. Vinodh says:

    You can use lftp to securely connect SFTP through linux CUI.

Got something to say? Join the discussion.

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