Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 8 of 8
  1. #1
    Member
    Join Date
    Apr 2009
    Posts
    6

    Default Disable SSH/Shell Access for all users

    Does anyone know of a quick way to disable SSH/Shell access for all users on the server?

    As currently there's only a disable button that I'd have to click for every account that would take up my whole day.
    Magmahost.com

  2. #2
    cPanel Partner NOC cPanel Partner NOC Badge
    Join Date
    Jul 2005
    Posts
    609

    Default

    Look at the AllowUsers option in sshd_config.

  3. #3
    cPanel Partner NOC cPanel Partner NOC Badge
    Join Date
    Dec 2003
    Location
    Athens/GREECE
    Posts
    180
    cPanel/Enkompass Access Level

    DataCenter Provider

    Default

    Hello,

    In WHM 11.25 under "Manage Shell Access" you now have the option to apply normal, jailed or no shell to all users with one click
    Sincerely,

    George Vardikos
    HyperHosting Internet Services

  4. #4
    cPanel Partner NOC cPanel Partner NOC Badge
    Join Date
    Jul 2005
    Posts
    609

    Default

    Quote Originally Posted by gvard View Post
    Hello,

    In WHM 11.25 under "Manage Shell Access" you now have the option to apply normal, jailed or no shell to all users with one click
    Ef Caristo!

  5. #5
    cPanel Quality Assurance Analyst cPanelDon's Avatar
    Join Date
    Nov 2008
    Location
    Houston, Texas, U.S.A.
    Posts
    2,555
    cPanel/Enkompass Access Level

    DataCenter Provider

    Lightbulb

    Quote Originally Posted by MH-Andy View Post
    Does anyone know of a quick way to disable SSH/Shell access for all users on the server?

    As currently there's only a disable button that I'd have to click for every account that would take up my whole day.
    Quote Originally Posted by gvard View Post
    Hello,

    In WHM 11.25 under "Manage Shell Access" you now have the option to apply normal, jailed or no shell to all users with one click
    What gvard described is correct; in cPanel 11.25 the Account Function "Manage Shell Access" is enhanced to include an option "apply to all" (accounts) when setting normal shell, jailed shell, or disabled shell access. For additional clarification here is the full menu path to access the feature and the applicable documentation:

    WHM: Main >> Account Functions >> Manage Shell Access
    Documentation: Manage Shell Access

  6. #6
    Member Fakher's Avatar
    Join Date
    Sep 2010
    Location
    Pakistan
    Posts
    8

    Default

    Hello all,
    i did this and disable shell access for all but again i am getting email alerts for different clients like
    Code:
    Time:Tue Oct 12 15:04:57 2010 +0400
    IP:      122.108.xxx.xxx (AU/Australia/c122-108-100-179.sunsh1.vic.optusnet.com.au)
    Account: emomom
    Method:  password authentication
    can some one advise me on this?

  7. #7
    cPanel Partner NOC cPanel Partner NOC Badge
    Join Date
    Dec 2003
    Location
    Athens/GREECE
    Posts
    180
    cPanel/Enkompass Access Level

    DataCenter Provider

    Default

    Hello,

    Maybe this login information you receive is not for SSH but for secure FTP (which connects the user via SSH first)?
    Sincerely,

    George Vardikos
    HyperHosting Internet Services

  8. #8
    cPanel Quality Assurance Analyst cPanelDon's Avatar
    Join Date
    Nov 2008
    Location
    Houston, Texas, U.S.A.
    Posts
    2,555
    cPanel/Enkompass Access Level

    DataCenter Provider

    Default

    Quote Originally Posted by Fakher View Post
    Hello all,
    i did this and disable shell access for all but again i am getting email alerts for different clients like
    Code:
    Time:Tue Oct 12 15:04:57 2010 +0400
    IP:      122.108.xxx.xxx (AU/Australia/c122-108-100-179.sunsh1.vic.optusnet.com.au)
    Account: emomom
    Method:  password authentication
    can some one advise me on this?
    The e-mail appears to be similar to what may be sent from CSF/LFD (using an e-mail template stored at "/etc/csf/sshalert.txt").

    To help determine if the user was accessing SFTP (via SSH), look in the system log file at "/var/log/secure" for an entry that mentions "subsystem request for sftp" that would have been logged at the same time as the entries indicating the account username.

Similar Threads & Tags
Similar threads

  1. Where is SSH/Shell access?
    By arman in forum New User Questions
    Replies: 5
    Last Post: 06-25-2006, 08:46 PM
  2. SSH Shell Access [moved]
    By eric_259 in forum New User Questions
    Replies: 3
    Last Post: 05-06-2006, 12:34 PM
  3. generate list of shell users via ssh
    By jdfcomputers in forum cPanel and WHM Discussions
    Replies: 2
    Last Post: 04-09-2006, 05:05 PM
  4. SSH / Shell Access not available
    By westhost-neil in forum New User Questions
    Replies: 2
    Last Post: 06-05-2005, 12:41 AM
  5. Disable shell access for all users
    By kcdworks in forum cPanel and WHM Discussions
    Replies: 4
    Last Post: 12-11-2004, 04:04 PM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube