Skip to main content

How to force user to use SFTP and Secure SMTP?

Comments

5 comments

  • Jcats
    . How to force customer using SFTP instead of using FTP. Do we need to turn on shell access?

    You can disable the FTP service via WHM > Service Manager And then yes, you would need to enable shell access. Too be honest though, this will increase the hackers ability to do even more damage if they are able to get the SFTP info from a trojan since they now have shell access where FTP will limit their abilities.
    . How to force user to download and send email using secure encrypted way?

    In WHM > Mailserver Configuration Set Allow Plaintext Authentication to NO WHM > Exim Configuration Manager Require clients to connect with SSL or issue the STARTTLS command before they are allowed to authenticate with the server. - On
    0
  • cPWilliamL
    Hi @sodapopinski @Jcats, Just to be clear, SFTP access for a cPanel user doesn't require shell access when disabled via WHM. When the shell is disabled from WHM, a special shell wrapper(/usr/local/cpanel/bin/noshell) is used to allow SFTP access, without allowing full shell access. With that said, this wrapper doesn't support any custom arguments added to the SFTP subsystem configuration. The rest of the recommendations are certainly correct though. Thanks,
    0
  • sodapopinski
    Thank you very much @Jcats and @cPWilliamL . Thank you ;p
    0
  • cPWilliamL
    Glad to help. I'll mark this thread as solved for now.
    0
  • speckados
    [QUOTE="J Too be honest though, this will increase the hackers ability to do even more damage if they are able to get the SFTP info from a trojan since they now have shell access where FTP will limit their abilities.
    It is incredible what level of system administrator you have to have to say such an outrage. Now it turns out that a Trojan finds it easier to obtain a user's SSH key in a command-data encrypted connection than through an unencrypted connection. It seems that you have never seen a dump of the connection between two points when they use ftp or scp/sftp. Please do not give advice like that you have given.
    0

Please sign in to leave a comment.