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
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
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 :
Select the server using ProFTPd with TLS. In the Server type of the drop-down menu, select FTPES instead of FTP :
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:
Once everything goes smoothly, you will begin the process of logging into the server.
You should read it
- File encryption software and privacy protection messages
- How to encrypt files using File Guard
- Top 20 best encryption software for Windows
- How to use Z1 CryptNow to encrypt data on Windows 10
- Instructions for configuring FTP server on iPad
- What is end-to-end encryption? How does it work?
- Which DNS encryption protocol best protects your web traffic?
- ShieldFS can stop and reverse the effects of extortion code
May be interested
- Upload data to FTP with just 1 operationamong today's supported ftp client programs, it seems that nothing is simpler than a right click, similar to how to create a shortcut on the desktop. in the following article, we will introduce you to a small utility to do this ...
- Instructions to encrypt and 'hide' BitTorrent traffic datathrough the previous analysis articles on tipsmake.com, we understand the basics of bittorrent as a form of storing and sharing files and data online. besides, the transmission and sharing of unallocated files and data is a contradictory form, for example when we use and download files from a fixed source.
- Install ISPConfig 3 ProFTPd for Debianif you are using a vps server with openvz, unfortunately you cannot run the pureftpd that comes with ispconfig by default. the following article will show you how to use proftpd to replace pureftpd easily.
- Instructions for installing Ubuntu Web Server on remote hostin the following article, we will show you how to install and configure ubuntu web server system on remote host. to do this, you need to prepare several factors as follows ...
- Control uTorrent remotely via mobile phonethe use and control of utorrent applications on computers has become familiar and simple for most of us users. but if in any case, we can't be at the computer and do those things, how to do it? in the article below, we will introduce you
- Automatically backup web server data with WinSCP via FTPfor website system administrators, data backup and recovery must always be the top priority. and in fact, there are many ways to do this that are applied daily. in the following article, we will show you how to do this with the free winscp tool and a little knowledge.