Advertisement
Guest User

Exemple de conf sftp

a guest
Mar 28th, 2012
173
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.94 KB | None | 0 0
  1. <blockquote><code><IfModule mod_sftp.c>
  2.     <VirtualHost 127.0.0.1>
  3.         SFTPEngine on
  4.         SFTPLog /var/log/proftpd/sftp.log
  5.         TransferLog /var/log/proftpd/xferlog-sftp.log
  6.         # Configure the server to listen on the normal SSH2 port, port 22
  7.         Port 2222
  8.         # Configure both the RSA and DSA host keys, using the same host key
  9.         # files that OpenSSH uses.
  10.         SFTPHostKey /etc/ssh/ssh_host_rsa_key
  11.         SFTPHostKey /etc/ssh/ssh_host_dsa_key
  12.         # Configure the file used for comparing authorized public keys of users.
  13.         SFTPAuthorizedUserKeys file:~/.sftp/authorized_keys
  14.         # Enable compression
  15.         SFTPCompression delayed
  16.         # Allow the same number of authentication attempts as OpenSSH.
  17.         #
  18.         # It is recommended that you explicitly configure MaxLoginAttempts
  19.         # for your SSH2/SFTP instance to be higher than the normal
  20.         # MaxLoginAttempts value for FTP, as there are more ways to authenticate
  21.         # using SSH2.
  22.         MaxLoginAttempts 6
  23.     </VirtualHost>
  24. </IfModule>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement