ssh limited access
Hi,
I want to give a SSH access to one of my users. But I want him to have access to his home directory ONLY. Or it seems that he can go up in the dir tree hierarchy. For ftp, easy to do but for ssh, I can't find any info on how to do that. Thanks for your help macadam |
According to "man sshd_config" you can use AllowUsers to restrict this. Here's what is says
Quote:
Jamie... |
thx I will try
regards, macadam |
BTW - remember to restart sshd for the changes to take effect!
Jamie... |
Well the allowusers statement does not restrict users to their home dir but gives only the possibility to login or not via ssh.
I only want a specific user to access his home directory and he must not be able to go up that directory... Thanks for your help anyway |
It appears that allowusers will restrict logins not restrict the users environment.
It might be possible with the permituserenvironment option. |
All ssh is is a form of communication from one host to another that allows a user to login as if that user were on the box. It takes place of telnet, as in it gives "secured" communications.
The way to limit someones access once they've got in to the box is by assigning them a specially created shell that only allows them access to their directory. |
Sorry, I misread your question!
I agree with Technoslave, a restricted shell may be your best bet. Unless you can chroot sshd into say /home so only all homedirs are available. cheers Jamie... |
All times are GMT -5. The time now is 03:34 PM. |