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!
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.