Link to home
Start Free TrialLog in
Avatar of machrisod
machrisodFlag for United States of America

asked on

disable ssh access

I have a centos5 server that i need to give a user access to. The server houses lots of sensitive info that I don't want to the user to be able to see. All I want them to be able to do is rsync their data out of their home directory and onto their local machine. I suppose there are many ways to do this, but i'm hoping there's an easy/str8 fwd way to do it.
Avatar of willettmeister
willettmeister

use the /etc/hosts.allow file and set it up so that you can only ssh from your network.
Avatar of machrisod

ASKER

is there a way to give them ssh but limit the commands they can run to just a few?
You can give them ssh and then limit their access to the files system by having them use sudo.  That way they would only have access to the files they own and then what ever commands they are allowed to run that you specify in the sudoers file.
ASKER CERTIFIED SOLUTION
Avatar of machrisod
machrisod
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
well with an attitude like that don't expect any more comments from me.
thanks for the useful comment willettmeister. why is EE so full of people that cannot joke or have any fun whatsoever? did i miss the bitter personality questionnaire? i in NO way meant anything against you. i even said thanks. i just happened to answer my own question which seems common on this site. my joking attitude was towards the site not towards you. have a sweet day filled with rainbows, bro.

-me!