Mysql – ProFTPd mod_sftp mod_sftp_sql

ftpMySQLpasswordproftpdsftp

I am working on Ubuntu 12.04
I have setup a ProFTPd service with SSL/TLS, virtual users stored in a MySQL database and quota (mod_tls, mod_sql, mod_sql_mysql, mod_quotatab, mod_quotatab_sql).
It works fine.

I want now to setup the same thing over SFTP instead of SSL/TLS.
I have built ProFTPd from sources with mod_sftp and mod_sftp_sql.

Is it possible to authenticate users with passwords over SFTP/SQL ?

I seen the directive SFTPAuthMethods that accepts password.
How to bind this with mod_sftp_sql and an SQL query ?
All found documentation is about public key authentication method.

Best Answer

SFTPAuthorizedUserKeys, SFTPAuthorizedHostKeys and SQLNamedQuery are the parameters you are looking for, I guess.

There is good explanation at the mod_sftp_sql modules documentation page:

http://www.proftpd.org/docs/contrib/mod_sftp_sql.html