Pure-FTPd as the FTP server
—
filed under:
LinuxSysAdmin
Set up Pure-ftpd as the secure FTP server with the following features:
- chroot for every connection.
- Virtual User on top of one connection user
- MySQL database to save virtual user's cridential and home folder
- SSL/TLS connection only
Configurations for MySQL
The following target:
- Compile with MySQL client lib
- prepare the MySQL database schema
- get ready the configuration file my MySQL connection
- load the MySQL config file through the command line option
SSL/TLS setup
Mainly the following topics:
- Enable tls during compiling
- prepare the certificate file using OpenSSL or purchase from ISP
- Turn on the tls connection through command line options
Options in Detail
-A
This option has full name --chrooteveryone,
which tells the meaning. It will force chroot for every user.
When pick this option, pure-fptd has to be ran as root account.
-Y
Option -Y 3 will set PureFtpd to ONLY accept SSL/TLS compitable client.
Check the following settings for FileZilla client:
- Menu File -> Site Manager...
- General tab
- Protocol: FTP - File Transfer Protocol
- Encryption: Require explicit FTP over TLS
- Logon Type: Normal
- input your account cridential
Resources
Homepage: http://www.pureftpd.org/project/pure-ftpd
pure-ftpd downloads: http://download.pureftpd.org/pub/pure-ftpd/releases/
GitHub Page: https://github.com/jedisct1/pure-ftpd
- Good Post about Pure-FTPD, TLS, Virtual Users in MySQL: Secure FTP Server with Pure-FTPD