Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <blockquote><code><IfModule mod_sftp.c>
- <VirtualHost 127.0.0.1>
- SFTPEngine on
- SFTPLog /var/log/proftpd/sftp.log
- TransferLog /var/log/proftpd/xferlog-sftp.log
- # Configure the server to listen on the normal SSH2 port, port 22
- Port 2222
- # Configure both the RSA and DSA host keys, using the same host key
- # files that OpenSSH uses.
- SFTPHostKey /etc/ssh/ssh_host_rsa_key
- SFTPHostKey /etc/ssh/ssh_host_dsa_key
- # Configure the file used for comparing authorized public keys of users.
- SFTPAuthorizedUserKeys file:~/.sftp/authorized_keys
- # Enable compression
- SFTPCompression delayed
- # Allow the same number of authentication attempts as OpenSSH.
- #
- # It is recommended that you explicitly configure MaxLoginAttempts
- # for your SSH2/SFTP instance to be higher than the normal
- # MaxLoginAttempts value for FTP, as there are more ways to authenticate
- # using SSH2.
- MaxLoginAttempts 6
- </VirtualHost>
- </IfModule>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement