type to search

By: [ Editor ] Asked from Peru

How can I jail ssh users inside of their home?

I want to give ssh access to one of my box to someone but I don’t want him to be able to get out of his home directory. Such as if his home is /home/bob, I don’t want him to be able to see /home, / and whatever there’s in /. What’s the best/simplest way to do so?



Giving the proper permissions to the users and their groups doesn’t work for you?
i.e. if you set /home to 750, nobody but the owner and its group members should read or list it, isn’t it?

NN comments

Yes but I don’t want to set /home to 750. I want something that would create a chroot automatically when user logs into his /home so he can’t get out, or something similar to that.

or Cancel
You need to join Ubuntu to complete this action, click here to do so.