Answer the question
In order to leave comments, you need to log in
How to give access to only one folder when connecting with ssh?
When setting up sftp, how to let users connect to a specific folder? Let's say to configure the same WinScp.
Please do not throw huge articles, I specifically wrote here so that they would answer me here.
Answer the question
In order to leave comments, you need to log in
In the sshd settings, the user needs to register:
ChrootDirectory /home/testuser
ForceCommand internal-sftp
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question