Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

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:
    106
    Likes Received:
    0
    Trophy Points:
    166
    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:
    56
    DenyUsers

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

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice