-   Linux - Newbie (
-   -   ssh tunnel username with restrictions (

MystKid 03-25-2011 01:15 PM

ssh tunnel username with restrictions
hello guys i have jsut setup a kvm virtual machine on my server. to connect to the VM from outside of the network i use ssh tunneling. what i would liek to know is if there is any way to create a new user with jsut ssh access. i dont want people to be able to edit files in ~/ or such. jsut need the user to estabilish the connection to the server
sorry for english, hope you understand what i am looking for

corp769 03-25-2011 01:37 PM

Sure, you can set up a user from the command line as so:

useradd -c "user" -s /dev/null -M
Note that this sets the shell as /dev/null, and -M is telling it not to create a home directory.

All times are GMT -5. The time now is 04:21 AM.