How to Install ProFTPd + TLS On Ubuntu/debian/mint

In this tutorial we will show you how to install Proftpd+TLS

Now let`s install protpd , so open a terminal and type the command :

Sudo   apt-get    install  propftpd  openssl

Now we have to edit  proftpd config file

vi /etc/proftpd/proftpd.conf

Add this

DefaultRoot ~
IdentLookups off
ServerIdent on "FTP Server ready."

Now Create  this  directory;

mkdir /etc/proftpd/openssl


and generate the SSL certificate with this command :

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

you will get  something  like  to apply :

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 []: <-- Enter your Email Address.


Now  enable  TLS In ProFTPd, to do that edit proftpd config file   :

vi /etc/proftpd/proftpd.conf

and  add

Include /etc/proftpd/tls.conf


now   open /etc/proftpd/tls.conf

vi /etc/proftpd/tls.conf

and  add

TLSEngine on
TLSLog /var/log/proftpd/tls.log
TLSProtocol SSLv23
TLSOptions NoCertRequest
TLSRSACertificateFile /etc/proftpd/openssl/proftpd.cert.pem
TLSRSACertificateKeyFile /etc/proftpd/openssl/proftpd.key.pem
TLSVerifyClient off
TLSRequired on


Now  restart   the  proftpd  server:

/etc/init.d/proftpd restart

Start   your ftp  client  and  connect


Zie ook:


Geplaatst in FTP server, Linux, Server beheer, Ubuntu
%d bloggers liken dit: