Hi All, hope you are well.
Ive followed this guide to add a FTP user and to restrict them to the site files only.
This works well if i access the site via FTP. If i try to connect to the site via SFTP i get the following error:
Error: FATAL ERROR: Received unexpected end-of-file from SFTP server
Error: Could not connect to server
Changing /etc/ssh/sshd_config
-> Subsystem sftp /usr/lib/openssh/sftp-server
to: Subsystem sftp internal-sftp
enables SFTP login, but then the user gets access to the entire server filesystem.
How can a user log in via SFTP while still being restricted to the site files only?
Thank you very much!