Portal Home > Knowledgebase > Articles Database > Setup ssh for users
Setup ssh for users
Posted by warhurst31, 04-17-2010, 07:52 AM |
I have a VPS running CenOS and webmin
I am trying to setup SSH access for one of the users on the server so that they only have access to their specified directory and not to any other parts of the OS
MyVPS have 5 IP. How to setup one user one IP
How can I do that?Please help me
|
Posted by fabin, 04-17-2010, 09:07 AM |
Are you trying to create a hosting account for this new user? If so, it will be easy to create new accounts using the virtualmin module. You need to install this module in webmin, and during virtual server creation, you can specify an IP for the account too.
|
Posted by Hostwaresupport, 04-17-2010, 10:24 AM |
You need to use Jail shell access in order to get your above requirement accomplished. You can check following link which will shed some light on Jail shell creation.
http://itss.it/wiki/tiki-index.php?p...Shell%20Access
|
Posted by warhurst31, 04-18-2010, 09:53 AM |
I added 1 IP to 1 user ok
but have problems when using the fake IP with firefox, all have the same root IP
|
Posted by samurai7, 04-18-2010, 10:26 AM |
You would need to setup chrooted jailshell or you can try "restricted shell" with bash (bash -r)
You will get custom jailshell script here
|
Posted by shawn_linux, 04-19-2010, 01:56 PM |
chsh -s /usr/local/cpanel/bin/jailshell username
|
Posted by paladinstrike, 04-19-2010, 04:41 PM |
The easiest setup of chroot jail for ssh/sftp that I've read is here:
http://www.minstrel.org.uk/papers/sftp/
I used his custom method and it works great.
|
Add to Favourites Print this Article
Also Read