The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Adding SSH User

Discussion in 'General Discussion' started by Neronix, Dec 31, 2005.

  1. Neronix

    Neronix Registered

    Joined:
    Dec 27, 2005
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    1
    How do I go about creating a cpanel account that would only allow the person to login via ssh and not login with cpanel. My problem is I need to make multiple ssh accounts and none of them will belong to a certain domain. And using false domains for everyone doesnt seem like a good idea.

    Any suggestions?
     
  2. flashweb

    flashweb Well-Known Member

    Joined:
    Mar 13, 2003
    Messages:
    243
    Likes Received:
    0
    Trophy Points:
    16
    cPanel Access Level:
    Root Administrator
    You will not able to do this with WHM/Cpanel as its designed for hosting web site.

    To add a new user, login to SSH and use adduser command. For help use "man adduser"

    # adduser USERNAME-HERE
    # Passwd USERNAME-HERE

    Will do it on Linux.
     
  3. david510

    david510 Well-Known Member

    Joined:
    Aug 22, 2004
    Messages:
    473
    Likes Received:
    0
    Trophy Points:
    16
    --->>would only allow the person to login via ssh and not login with cpanel

    So is it that, you wanted to login to this username's cpanel? Otherwise why do you need to make a cpanel account? It could be easily done as per flashweb said.

    David
     
  4. dave9000

    dave9000 Well-Known Member

    Joined:
    Apr 7, 2003
    Messages:
    891
    Likes Received:
    1
    Trophy Points:
    16
    Location:
    arkansas
    cPanel Access Level:
    Root Administrator
    To expand on this a bit

    If you add a user using the above commands on linux the user will have a workspace created at /home/USERNAME-HERE and will log in to this path when they access via ssh.

    as in

    useradd foo
    passwd foo

    will login to /home/foo
     
  5. moFBush

    moFBush Well-Known Member

    Joined:
    Dec 31, 2005
    Messages:
    51
    Likes Received:
    0
    Trophy Points:
    6
    i've done the following commands as the "root" user.

    adduser vent
    passwd vent (then when prompted, put in a password for the user)

    it makes /home/vent

    but the user is unable to login. :(
     
  6. chris74108

    chris74108 Well-Known Member

    Joined:
    Apr 30, 2004
    Messages:
    86
    Likes Received:
    0
    Trophy Points:
    6
    Are you sure they are using the correct ssh port?
    Perhaps you should try logging in it yourself with their login and password.
     
Loading...

Share This Page