Hi TJ,
Thank you so much for the quick response and providing the link to those
documents. From the documents it has the below sample configuration. I am
planning to use only password based authentication. In that case do I need
the parameters
  SFTPHostKey ,    SFTPAuthorizedUserKeys , and  SFTPCompression . In this
case how do I pass the username and password to SFTP via configuration. DO
I need to set the parameter SFTPAuthMethods  also for this?


  <IfModule mod_sftp.c>
    <VirtualHost *a.b.c.d*>
      SFTPEngine on
      SFTPLog /etc/proftpd/sftp/sftp.log

      # Configure the server to listen on the normal SSH2 port, port 22
      Port 22

      # Configure the RSA, DSA, and ECDSA host keys, using the same host key
      # files that OpenSSH uses.
      SFTPHostKey /etc/ssh_host_rsa_key
      SFTPHostKey /etc/ssh_host_dsa_key
      SFTPHostKey /etc/ssh_host_ecdsa_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>


Thank you one again for your help.


Regards

Simon


On Sat, May 15, 2021 at 10:36 AM TJ Saunders <[email protected]> wrote:

>
> > I am new to proftpd . I would like to know how to enable sftp on
> > proftpd and do secure file transfer.
> > In the proftpd.conf file I can see the SFTPengine parameter. If I make
> > it ON will sftp work?
>
> First, you need to make sure your installed ProFTPD has the mod_sftp
> module installed/included; you can see this via `proftpd -l`, or `proftpd
> -V`.
>
> Once you know that mod_sftp is present/enabled, you need to configure an
> SFTP <VirtualHost>.  Note that using "SFTPEngine on" is not enough;
> mod_sftp requires other settings as well.  See the "Example Configuration"
> section of the mod_sftp docs:
>   http://www.proftpd.org/docs/contrib/mod_sftp.html
>
> Hope this helps,
> TJ
>
>
> _______________________________________________
> ProFTPD Developers List
> <[email protected]>
> https://lists.sourceforge.net/lists/listinfo/proftp-devel
>
_______________________________________________
ProFTPD Developers List
<[email protected]>
https://lists.sourceforge.net/lists/listinfo/proftp-devel

Reply via email to