ProFTPd issue on Debian 10 (error reading passphrase for SFTPHostKey)

Hello again,

I have an isue with proftp.
Server is not running and notlistening.

systemctl sais:

Mar 10 13:27:24 myvps.de proftpd[18197]: 2020-03-10 13:27:24,518 myvps.de proftpd[18204]: mod_dso/0.5: module 'mod_tls.c' already loaded
Mar 10 13:27:24 myvps.de proftpd[18197]: 2020-03-10 13:27:24,541 myvps.de proftpd[18204]: mod_tls/2.7: NoCertRequest TLSOption is deprecated
Mar 10 13:27:24 myvps.de proftpd[18197]: 2020-03-10 13:27:24,541 myvps.de proftpd[18204]: mod_dso/0.5: module 'mod_sftp.c' already loaded
Mar 10 13:27:29 myvps.de proftpd[18197]: Wrong passphrase for this key.  Please try again.
Mar 10 13:27:29 myvps.de proftpd[18197]: Wrong passphrase for this key.  Please try again.
Mar 10 13:27:29 myvps.de proftpd[18197]: Wrong passphrase for this key.  Please try again.
Mar 10 13:27:29 myvps.de proftpd[18197]: 2020-03-10 13:27:29,550 myvps.de proftpd[18204] myvps.de: mod_sftp/1.0.0: error reading passphrase for SFTPHostKey '/etc/proftpd/ssh_host_rsa_key': (unknown)
Mar 10 13:27:29 myvps.de proftpd[18197]: 2020-03-10 13:27:29,550 myvps.de proftpd[18204] myvps.de: mod_sftp/1.0.0: unable to use key in SFTPHostKey '/etc/proftpd/ssh_host_rsa_key', exiting
Mar 10 13:27:29 myvps.de proftpd[18197]: .
Mar 10 13:27:29 myvps.de systemd[1]: Started LSB: Starts ProFTPD daemon.

Anybody out there to explain why?

Regards

Dyo

Seems to be related to wrong key-format by open-ssl.

Thats the point to take a look to other wanted feature.
It would be nice, if I could use another Key depending on wich virtualhost should be accessed via ftp.

Is it possible?

Simply run the following to fix that:

ssh-keygen -f /etc/proftpd/ssh_host_ecdsa_key -t ecdsa -N '' -m PEM
ssh-keygen -f /etc/proftpd/ssh_host_rsa_key -t rsa -N '' -m PEM
systemctl restart proftpd

Thanks, that did it;-)