LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   Ssh (https://www.linuxquestions.org/questions/linux-server-73/ssh-634516/)

sarhang 04-10-2008 07:54 PM

Ssh
 
Hi

I have a server and I want to give a user remortely to use ssh to access a particular folder /srv/www, so I used:

ssh-keygen -t rsa
password
scp /root/.ssh/id_rsa.pub webmaster@ip_address_server:
cat .ssh.pub >> .ssh/authorized_keys
ssh webmaster@ip_address_server

Then it is fine I login via ssh as webmaster, but I have a problem when the webmaster is using ssh to login, he will have access to the server but i just want him to have acceess to this folder /srv/www, and I don want him to have access to anything else on the server, thanks.


sarhang

Wim Sturkenboom 04-11-2008 01:36 AM

Google for ssh jail


All times are GMT -5. The time now is 11:35 AM.