Skip to content

Instantly share code, notes, and snippets.

@MiteshShah
Last active June 3, 2016 11:40
Show Gist options
  • Save MiteshShah/8f6817b57a3d547c7eb744349d340d48 to your computer and use it in GitHub Desktop.
Save MiteshShah/8f6817b57a3d547c7eb744349d340d48 to your computer and use it in GitHub Desktop.
<IfModule mod_sftp.c>
SFTPEngine on
Port 2222
SFTPLog /var/log/proftpd/sftp.log
# 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
SFTPAuthMethods password
#SFTPAuthorizedUserKeys file:/etc/proftpd/authorized_keys/%u
# Enable compression
SFTPCompression delayed
</IfModule>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment