[Proftpd-user] Proftpd with mod_sftp not working on Ubuntu 2022.04 - "error decrypting"

Cosmin Neagu <[email protected]> Mon, 23 May 2022 10:25:45 +0300
Newsgroups gmane.network.proftpd.user
Message-ID <CAA8U1--nfgKW9Pu7ZHiKHX0miGJ1Y_Gafa8gAQH7Bk11rPzbqw@mail.gmail.com>
Hello,

I'm looking into using proftpd solution in production for our enterprise
environment, as an SFTP and FTPS server.
All tests run so far on Ubuntu 2020 since February seem to be ok, but for
production we decided to give Ubuntu 2022 a try.

All went ok, up to testing SFTP using mod_sftp, which always fails, giving
this error in the sftp logs:
"error decrypting aes256-ctr data from client: (unknown)"
Tried multiple encryption algorithms, all give the same result.

Questions for this list, is has anyone one make mod_sftp work on Ubuntu
2022? And if yes, can I get some help on how that was done?


I noticed that Ubuntu 2022 comes with a way newer version of OpenSSL, as
opposed to Ubuntu 2020.

Proftpd version: proftpd-1.3.7d
Things I tried on Ubuntu 2022 (all of these were okin Ubuntu 2020)
1. Compiling:
./configure \
--prefix=/opt/proftpd-sftp \
--enable-openssl \
--with-modules=mod_sql:mod_sql_mysql:mod_sftp:mod_unique_id \
--with-includes=/usr/include/mysql/ \
--with-libraries=/usr/lib/x86_64-linux-gnu
make clean
make
sudo make install

Relevant SFTP config:
<IfModule mod_sftp.c>
Port 22
TransferLog /var/log/proftpd/sftp-transfer
ExtendedLog /var/log/proftpd/sftp-extended
SFTPEngine on
SFTPLog /var/log/proftpd/sftp.log
SFTPHostKey /etc/ssh/ssh_host_rsa_key
SFTPHostKey /etc/ssh/ssh_host_ecdsa_key
SFTPAuthorizedUserKeys file:~/.sftp/authorized_keys
</IfModule>

2. Tried with proftp 1.3.7c directly from ubuntu repositories, same
encryption error.



Best regards,

*Cosmin Neagu*

_______________________________________________
ProFTPD Users List   <[email protected]>
Unsubscribe problems?
http://www.proftpd.org/list-unsub.html