Restrict ssh/sftp with chroot?
I want to make some users to be chrooted when he ssh/sftp. I haven't find these parameters in sshd_config. How can I achieve that?
thanks. |
you mean you wanted to let them have root access when they ssh? why not give them the root password, and let them su?
but why would you want to open up your system like that? what are you trying to accomplish? |
I mean chroot to a certain directory, for example, make /home/USER or /mnt/SSH as the root directory(/) of those users when they ssh/sftp, so they can't chdir(cd) and browse(ls) other directories of the system.
for exmaple, if chroot to /home/USER, they can't: # cd ../ # ls ../ Because /home/USER is their root dir! |
|
Thank you. I think this is what I want.
|
All times are GMT -5. The time now is 04:08 PM. |