Bonjour,

Cela fait plus d'un mois que je cherche partout une solution à mon problème....
Alors voila, j'ai un serveur Linux Oracle qui doit devenir une plateforme SFTP pour l'échange de fichiers.
J'ai deja SSH dessus qui tourne très bien avec authentification par clé.
J'ai donc installé Proftpd et mis la config suivante pour la partie SFTP :

# SFTP
<VirtualHost 0.0.0.0>
SFTPEngine on
TLSEngine off
Port 2222
ServerName "Files Transfert"
SFTPHostKey /etc/ssh/ssh_host_rsa_key
#SFTPHostKey /etc/ssh/ssh_host_dsa_key
SFTPAuthMethods publickey
AuthUserFile /etc/proftpd.passwd
AuthGroupFile /etc/proftpd.group
SFTPAuthorizedUserKeys file:/ftproot/client_keys/%u
TransferLog /var/log/proftpd/transfert_sftp.log
SFTPLog /var/log/proftpd/sftp.log
<Limit SITE_CHMOD>
DenyAll
</Limit>
</VirtualHost>

Les users sont donc bien rajoutés dans le fichier proftpd et voila à quoi ressemble un user :

test:[le hash du password]::/ftproot/client/test:/sbin/nologin


J'arrive pas à me connecter, lorsque je lance la commande :

sftp -vvv test@[IP] -p2222

j'ai ce message à la fin :

debug2: we sent a publickey packet, wait for reply
debug1: Authentications that can continue: publickey,gssapi-keyex,gssapi-with-mic
debug1: Trying private key: /root/.ssh/id_dsa
debug3: no such identity: /root/.ssh/id_dsa: No such file or directory
debug1: Trying private key: /root/.ssh/id_ecdsa
debug3: no such identity: /root/.ssh/id_ecdsa: No such file or directory
debug1: Trying private key: /root/.ssh/id_ed25519
debug3: no such identity: /root/.ssh/id_ed25519: No such file or directory
debug2: we did not send a packet, disable method
debug1: No more authentication methods to try.
Permission denied (publickey,gssapi-keyex,gssapi-with-mic).
Connection closed

et sur le serveur en question dans les log j'ai ça :

Feb 4 17:07:48 connect sshd[26049]: Invalid user test from [IP]
Feb 4 17:07:48 connect sshd[26049]: input_userauth_request: invalid user test [preauth]
Feb 4 17:07:48 connect sshd[26049]: Connection closed by [IP] [preauth]

J'ai l'impression qu'il arrive pas à lire le fichier /etc/proftpd.passwd pour les users.

Si quelqu'un a une idée, je serai preneur.

Merci beaucoup.