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
Last edited by sarhang; 04-10-2008 at 09:43 PM.
|