Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

Using SFTP for all FTP accounts?

Discussion in 'General Discussion' started by jez9999, Apr 5, 2007.

  1. jez9999

    jez9999 Well-Known Member

    Jun 10, 2005
    Likes Received:
    Trophy Points:
    I think cPanel allows the use of FTP for accounts setup in cPanel (you can setup a ton of custom FTP accounts), but SFTP is handled totally differently; I believe OpenSSH is used to provide this functionality, and it is automatically set up when you add a new user to the system in WHM.

    The trouble with this is that you can only have one SFTP account per user; i'd like several accounts with different usernames and passwords, like FTP. Furthermore, you can't limit the root directory to a directory under your home space; the root directory has to be /. With FTP you can set a root directory.

    I know SFTP is basically an SSH connection that uses special file transfer facilities, but I still don't see why it can't be possible to set up SFTP accounts with arbitrary root directories under a user's homespace, like you can do with FTP. Is there a way to do this under the current cPanel setup, and if not is there a piece of software you can recommend that will do it? I basically want to replace my FTP logins with SFTP logins for security.
  2. chirpy

    chirpy Well-Known Member Verifed Vendor

    Jun 15, 2002
    Likes Received:
    Trophy Points:
    Go on, have a guess
    You cannot do it within the cPanel configuration as it is and would probably require some work to achieve it since FTP and SSH use completely different authentication mechanisms. Probably easier would be to have clients use FTP over TLS/SSL instead.
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice