I've just attempted to set up ProFTPD as an SFTP server, However I'm facing some curious behavior when it comes to public key authentication.
For some reason, proftpd is acepting every single key fingerprint presented to it regardless if it is present in the user's authorized keys file, causing my agent (in this case keeagent) to prompt for every single key until it reaches the key for the user.
This appears to be rather different from OpenSSH servers which only accepts keys which are present in the authorized_keys file.
Is this supposed to be intended behavior, or is it a bug?
ProFTPD Version 1.3.5a
<IfModule mod_sftp.c>
SFTPEngine on
Port 2222
SFTPLog /var/log/proftpd/sftp.log
# Configure both the RSA and DSA host keys, using the same host key
# files that OpenSSH uses.
SFTPHostKey /etc/ssh/ssh_host_rsa_key
SFTPHostKey /etc/ssh/ssh_host_dsa_key
SFTPHostKey /etc/ssh/ssh_host_ecdsa_key
SFTPAuthMethods publickey
SFTPAuthorizedUserKeys file:~%u/.ssh/sftp_keys
# Enable compression
SFTPCompression delayed
</IfModule>