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!

Enable/ Disable OpenSSH from WHM ?

Discussion in 'General Discussion' started by aitn, Mar 20, 2002.

  1. aitn

    aitn Member

    Joined:
    Mar 14, 2002
    Messages:
    13
    Likes Received:
    0
    Trophy Points:
    301
    Hi..

    How I can Enable or Disable OpenSSH for a spesifc site or the whole site ?


    And How I can enable/disable the TELNET to spesific site from the console ?


    Please HeLP
     
  2. awsol

    awsol cPanel Test Bitch

    Joined:
    Feb 8, 2002
    Messages:
    591
    Likes Received:
    0
    Trophy Points:
    316
    Location:
    Boston MA
    At the shell type

    pico /etc/passwd

    You will see lines with :/bin/bash at the end. Those are users with shell access. To change them to no access do this.

    Change :/bin/bash to :/usr/local/cpanel/bin/noshell and this will deny their login.
     
  3. powerhouse

    powerhouse Well-Known Member

    Joined:
    Nov 5, 2001
    Messages:
    93
    Likes Received:
    0
    Trophy Points:
    306
    Location:
    Ok
    Or login to Shell and type this:

    chsh username
    it will prompt you for the new shell, type this:

    to add shell access to a user:
    /bin/bash

    To remove shell access:
    /usr/local/cpanel/bin/noshell

    hit enter, and poof....
    Done
    :p
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
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