| 1 |
# |
| 2 |
# Proftpd sample configuration for SFTP connections. |
| 3 |
# |
| 4 |
# Once enabled, you can even disable the sftpserver support of OpenSSH on port 22. |
| 5 |
# To do that, comment out the Subsystem sftp /usr/lib/openssh/sftp-server |
| 6 |
# line in /etc/ssh/sshd_config and restart the service. |
| 7 |
# |
| 8 |
|
| 9 |
<IfModule mod_sftp.c> |
| 10 |
#SFTPEngine on |
| 11 |
#Port 2222 |
| 12 |
#SFTPLog /var/log/proftpd/sftp.log |
| 13 |
# |
| 14 |
# Configure all host keys, using the same host key |
| 15 |
# files that OpenSSH uses. |
| 16 |
# |
| 17 |
#SFTPHostKey /etc/ssh/ssh_host_rsa_key |
| 18 |
#SFTPHostKey /etc/ssh/ssh_host_dsa_key |
| 19 |
#SFTPHostKey /etc/ssh/ssh_host_rsa_key |
| 20 |
#SFTPHostKey /etc/ssh/ssh_host_ecdsa_key |
| 21 |
#SFTPHostKey /etc/ssh/ssh_host_ed25519_key |
| 22 |
# |
| 23 |
# Preferred authentication method is by keys |
| 24 |
# |
| 25 |
#SFTPAuthMethods publickey |
| 26 |
# |
| 27 |
# This is available only if mod_sftp_pam is used |
| 28 |
# |
| 29 |
#SFTPAuthMethods keyboard-interactive |
| 30 |
# |
| 31 |
# Use either |
| 32 |
# ssh-keygen -e -f ~user/.ssh/id_rsa.pub >/etc/proftpd/authorized_keys/user |
| 33 |
# or |
| 34 |
# ssh-keygen -e -f ~user/.ssh/authorized_keys >/etc/proftpd/authorized_keys/user |
| 35 |
# to convert users public keys in RFC4716 format. |
| 36 |
# |
| 37 |
#SFTPAuthorizedUserKeys file:/etc/proftpd/authorized_keys/%u |
| 38 |
# |
| 39 |
# Enable compression |
| 40 |
# |
| 41 |
#SFTPCompression delayed |
| 42 |
</IfModule> |