change FTP directory for user
When I use Filezilla and input the IP address, user, password and port (22), I get the security certificate message. I accept yes and I notice that the IP address is preceded by the moniker SFTP. I'm assuming I am in SFTP mode?
The user name I created has full access to all directories. I only wish the user to have access to the /srv/www/public_html/ folder to upload website files.
How do I change it to where upon bootup in Filezilla, it takes the user to that specific directory instead of full access? I did a full read of the users and groups documentation in the library but didn't see much about changing directories in default FTP/SFTP logins for created users.
2 Replies
Set````
Subsystem sftp internal-sftp
Match Group
````
The directory /srv/www/public_html/ must be root owned and not writable by other users or groups (so you might want to set it to /srv/www)
Replacing the
Of course that won't stop them from accessing ssh (but it will lock them down)
Have a read of this for more information.
Subsystem sftp /usr/lib/openssh/sftp-server
I'm a little foggy on your instructions. According to your instructions, I should delete what I have above and use this instead?
Subsystem sftp internal-sftp