SFTP user

Discussion in 'Installation/Configuration' started by Kemp, Dec 29, 2023.

  1. Kemp

    Kemp Member

    OS: Debian 12

    Hi,

    I have added a domain/website using ISPConfig.

    I have also created a new separate user manually using command line.

    A separate directory has been created for that user under /home/username.

    I want to create a SFTP user that I can give access to /home/username directory.

    1. Can you please tell me how I can create SFTP user using command line that gives access to /home/username.
    Or if I can modify ISPConfig created SFTP account settings to allow access to /home/username as well.

    Thank you!
     
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    SFTP in Linux is SSH and SSH users are Linux users, so you create a user that can use SFTP by using A Linux command like adduser or useradd, there is no additional config needed. You just have to be aware that your manual setup is most likely quite insecure, unless you also manually configured a complete jail environment like ISPConfig is doing it. My recommendation is you delete the user you manually added and create an SSH user in ISPConfig instead. SSH users in ISPConfig can use SFTP and they also have a home folder too, to store data that shall not be in the web root. Plus you can choose to have a secure system by creating it as a jailed user in ISPConfig. Manually creating a user for SFTP on an ISPConfig system just does not make much sense.
     
    ahrasis likes this.
  3. Kemp

    Kemp Member

    Thank you! :)
     

Share This Page