SFTP over SSH avec comptes virtuel
This commit is contained in:
parent
35507ab910
commit
43589dc385
|
@ -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)
|
Loading…
Reference in a new issue