Good morning, I have a basic Ubuntu EC2 webserver with Apache, and several different websites on it. I log in to it via SSH with the access key provided by AWS to do basic stuff (I am a developer, not very much a sysadmin), and upload files via SFTP.
Now we need to allow one particular client to access one of the websites. I created a new linux user, enabled PasswordAuthentication in sshd_config, and made the website folder his home directory. But it can navigate through the server and access other folders as well, which I'd like to disallow.
I googled quite a bit, I followed this article among the others: https://www.cyberciti.biz/faq/debian-ubuntu-restricting-ssh-user-session-to-a-directory-chrooted-jail/
But when I put the last lines in the sshd_config, it doesn't allow me to login with the restricted user anymore, so it isn't working.
There is some more-easy way to do this? Thank you!