18
0
Fork 0

SFTP over SSH avec comptes virtuel

This commit is contained in:
emorino 2017-11-09 16:31:18 +01:00
parent 35507ab910
commit 43589dc385
1 changed files with 28 additions and 0 deletions

View File

@ -246,6 +246,34 @@ SFTPCompression delayed
</IfModule>
~~~
Si on veut faire du SFTP over SSH avec les comptes virtuels, on crée une configuration comme celle-ci dans */etc/proftpd/conf.d/sftp.conf* :
~~~
LoadModule mod_tls.c
<IfModule mod_sftp.c>
SFTPEngine on
Port 2222
DefaultRoot ~
SFTPLog /var/log/proftpd/sftp.log
SFTPAuthMethods password publickey
SFTPHostKey /etc/ssh/ssh_host_dsa_key
SFTPHostKey /etc/ssh/ssh_host_ecdsa_key
SFTPHostKey /etc/ssh/ssh_host_rsa_key
SFTPAuthorizedUserKeys file:/etc/proftpd/sftp.passwd.keys/%u
AuthUserFile /etc/proftpd/vpasswd
</IfModule>
~~~
On peut soit se connecter avec le mot de passe du compte virtuel, soit ajouté une clé ssh dans /etc/proftpd/sftp.passwd.keys/
## Logs
[fichier xferlog](http://www.castaglia.org/proftpd/doc/xferlog.html)