I want to limit the users to their file. I added the following lines to the sshd configuration file.
Match user user1 user2 user3
ChrootDirectory /home/%u/
ForceCommand internal-sftp
X11Forwarding no
AllowTCPForwarding no
When I do "service ssh restart" the following error is displayed :
"Job for ssh.service failed because the control process exited with error code. See "systemctl status ssh.service" and "journalctl -xe" for details. ".
If I put a single user it works, but how do I add multiple users ?