Set up ProFTPd with TLS on Ubuntu 11.04

TipsMake.com - FTP is a file transfer protocol used quite popular today. However, this protocol gradually becomes less secure because the entire password and data of the file is transmitted as clear text. So they can be blocked and stolen by the thief. By using TLS, all information will be encrypted, and will make FTP much safer. The following article will guide you to the ProFTPd settings with TLS in Ubuntu 11.04 server.

>>>Learn about OpenSSH in Linux

Set up ProFTPd with TLS on Ubuntu 11.04 Picture 1

Note: In the following illustration we use hostname server1.example.com with IP address 192.168.0.100 . These settings may be different for you, so replace them accordingly.

In addition, since we need to run all the steps in this tutorial with root permissions, we need to prefix all sudo string commands, or we can return to root by typing:

sudosu

Install ProFTPd and OpenSSL

OpenSSL is an open source utility needed for TLS, installing ProFTPd and OpenSSL is very simple, just run the following command:

apt-get installproftpd openssl

You will then receive a question:

Run proftpd:

To increase security you can add the following command line to the file /etc/proftpd/proftpd.conf . (See more information here):

en /etc/proftpd/proftpd.conf

[.]
DefaultRoot ~
ServerIdent on "FTP Server ready."
[.]

Create an SSL certificate for TLS

To use TLS we need to create an SSL certificate. We created it in / etc / proftpd / ssl , so next is created in the first path:

mkdir / etc / proftpd / ssl

Finally we can create the SSL certificate as follows:

openssl req -new -x509 -days 365 -nodes -out /etc/proftpd/ssl/proftpd.cert.pem -keyout /etc/proftpd/ssl/proftpd.key.pem

Country Name (2 letter code) [AU]:
State or Province Name (full name) [Some-State]:
Locality Name (eg, city) []:
Organization Name (eg, company) [Internet Widgits Pty Ltd]:
Organizational Unit Name (eg, section) []:
Common Name (eg, YOUR name) []:
Email Address []:

Activate TLS in ProFTPd

To enable TLS in ProFTPd , open /etc/proftpd/proftpd.conf :

en /etc/proftpd/proftpd.conf

and uncomment ' Include /etc/proftpd/tls.conf '

[.]
#
# Này được dùng cho FTPS các kết nối
#
Include /etc/proftpd/tls.conf
[.]

Then open /etc/proftpd/tls.conf and make it look like this:

en /etc/proftpd/tls.conf

Set up ProFTPd with TLS on Ubuntu 11.04 Picture 2

If you use TLSRequired on , then only TLS connections are allowed (this will be blocked with older FTP clients that are not supported for TLS); Using TLSRequired off, TLS and non-TLS connections will be allowed depending on the support of the FTP client.

Restart ProFTPd:

/etc/init.d/proftpd restart

You can try connecting using your FTP client, but you should reconfigure it to use TLS (this is necessary if you use TLSRequired on).

If you have problems with TLS, you can see the /var/log/proftpd/tls.log log file.

Configure FileZilla for TLS

To use FTP with TLS, you need an FTP client that supports TLS, such as FileZilla .

In FileZilla open Server Manager :

Set up ProFTPd with TLS on Ubuntu 11.04 Picture 3

Select the server using ProFTPd with TLS. In the Server type of the drop-down menu, select FTPES instead of FTP :

Set up ProFTPd with TLS on Ubuntu 11.04 Picture 4

You can now connect to the server. If this is your first time doing this, you need to accept the server's new SSL certificate:

Set up ProFTPd with TLS on Ubuntu 11.04 Picture 5

Once everything goes smoothly, you will begin the process of logging into the server.

Set up ProFTPd with TLS on Ubuntu 11.04 Picture 6

5 ★ | 1 Vote

May be interested

  • 7 reasons to upgrade to Ubuntu 23.047 reasons to upgrade to Ubuntu 23.04
    canonical released the final version of ubuntu 23.04, called lunar lobster, in april 2023. this version of ubuntu offers quite a few changes and updates that many will surely appreciate.
  • Ubuntu 19.10: Roadmap for release & planned featuresUbuntu 19.10: Roadmap for release & planned features
    ubuntu 19.04 disco dingo has been officially released for several months and now is probably the right time to spend some time discussing the upcoming ubuntu 19.10 'eoan ermine'.
  • Tips and tricks after installing UbuntuTips and tricks after installing Ubuntu
    ubuntu is one of the completely free open source operating systems. this is a distribution (distro) of linux with the second highest amount of traffic after linux mint.
  • What is Ubuntu? Why should you use Ubuntu to replace Windows?What is Ubuntu? Why should you use Ubuntu to replace Windows?
    what is ubuntu? why should you use ubuntu to replace windows? currently, ubuntu is much more popular than before and is strongly developed. in this article, the software tips will help you learn about ubuntu and why ubuntu should be used instead of windows.
  • How to run Ubuntu 18.04 or 18.10 on Raspberry PiHow to run Ubuntu 18.04 or 18.10 on Raspberry Pi
    raspberry pi and ubuntu seem like an ideal combination, but don't have an official standard ubuntu image for single-board computers.
  • How to Install Ubuntu 13.10How to Install Ubuntu 13.10
    ubuntu is a kind of linux operating system designed to run on desktop and laptop computers. ubuntu is an open-source program, meaning its code can be accessed and modified by end users. and because it's free, ubuntu is said to be the most...
  • What's new in Ubuntu 18.04? Should updateWhat's new in Ubuntu 18.04? Should update
    the ubuntu 18.04 lts 'bionic beaver' update promises to bring a host of new features to linux computers. if you're wondering what's new in ubuntu 18.04? should i update ubuntu 18.04 or not? the answer will be given to you in tipsmake's article below
  • 5 things to do when installing Ubuntu on PC5 things to do when installing Ubuntu on PC
    ubuntu is a powerful linux distribution suitable for a wide variety of use cases, ideal for both beginners and seasoned linux users.
  • How to install Ubuntu 22.04 LTS on PC or laptopHow to install Ubuntu 22.04 LTS on PC or laptop
    whether you are trying linux for the first time or simply want a reliable alternative to windows, ubuntu is always a great choice.
  • How to Customize Ubuntu 23.04 to Look Like macOSHow to Customize Ubuntu 23.04 to Look Like macOS
    ubuntu 23.04 lunar lobster, released in april 2023, brings many interesting features. despite stiff competition from operating systems like macos and windows, ubuntu still manages to create a niche for itself in the market.