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.

Restrict SSH Access for a single user

Discussion in 'General Discussion' started by nerdzoll, Sep 8, 2008.

  1. nerdzoll

    nerdzoll Well-Known Member

    Joined:
    Oct 4, 2004
    Messages:
    105
    Likes Received:
    0
    Trophy Points:
    16
    Heya All,
    I want to set up an account that is able to log in only to the local console and hence want to restrict the account so that it cannot be used for ssh access.

    I have run:
    useradd blah1
    passwd blah1
    <enter pass twice>

    However this automatically permits SSH access. Any ideas, I was unable to find anything on the forums for this?
    Cheers
    Stuart
     
  2. FreedomBI

    FreedomBI Well-Known Member

    Joined:
    Jul 7, 2008
    Messages:
    65
    Likes Received:
    0
    Trophy Points:
    6
    DenyUsers

    "man sshd" and "man sshd_config" for more info.
     
Loading...

Share This Page