Comments on Virtual Hosting with vsftpd + TLS encryption and MySQL on Ubuntu 15.10
Vsftpd is one of the most secure and fastest FTP servers for Linux. Usually vsftpd is configured to work with system users. This document describes how to install a vsftpd server that uses virtual users from a MySQL database instead of real system users. This is much more performant and allows to have thousands of ftp users on a single machine.
4 Comment(s)
Comments
I've followed your guide but am unable to connect with the test user. in filezilla I get.
Command: USER testuser
Response: 331 Please specify the password.
Command: PASS ******
Response: 530 Login incorrect.
Error: Critical error: Could not connect to server
I am not sure it is using the SQL db for authentication. Is there a way to verify?
I put this in /etc/pam.d/vsftpd
auth required pam_mysql.so user=vsftpd passwd=ftpdpass host=localhost db=vsftpd table=accounts usercolumn=username passwdcolumn=pass crypt=2 account required pam_mysql.so user=vsftpd passwd=ftpdpass host=localhost db=vsftpd table=accounts usercolumn=username passwdcolumn=pass crypt=A Good Tutorial. I am able setup as you explained using Mysql to store virtual usres details. However, when i tried connecting to the server, I am getting below error
Error: GnuTLS error -15: An unexpected TLS packet was received.
Errror: Could not connect to server
There is a NAT device behind my server and client and but stil lnecessary packet inspections are enabled to allow active ftp connections as well.
Can you help me with this?
The format of vsftpd.conf is very simple. Each line is either a comment or a directive. Comment lines start with a # and are ignored. A directive line has the format:
option=value
It is important to note that it is an error to put any space between the option, = and value.
thank you