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.

WHM cannot restart sshd /etc/hosts.allow

Discussion in 'Security' started by synaptyx, May 24, 2013.

  1. synaptyx

    synaptyx Registered

    Joined:
    Jun 11, 2010
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    1
    Hello,

    I am looking for a bit of advice and a bit of technical help.

    Recently we had our server MySQL and some of our site files altered/hacked and our mailserver abused. I have just finished 4 days of cleaning up and fixing things and upping the security.
    One thing happened that was really annoying was that SSH fell over and I couldn't restart it from WHM. I contacted our VPS host and got this response (which took over 24 hours to be resolved).

    First, I am definitely an amatueur when it comes to managing a WHM/cPanel server.
    Second, I don't know if this is something I should allow from a security point of view, but a 24 hour wait for someone else to restart the service when it fails is not good from a business point of view if we are having issues only resolvable via SSH.
    And thirdly, if it's safe, exactly how would I go about allowing WHM access to restart the service?

    Thanks for reading! :)
     
  2. Infopro

    Infopro cPanel Sr. Product Evangelist
    Staff Member

    Joined:
    May 20, 2003
    Messages:
    14,478
    Likes Received:
    203
    Trophy Points:
    63
    Location:
    Pennsylvania
    cPanel Access Level:
    Root Administrator
    Twitter:
    Was the message you saw, similar to this one?

    If yes, after you get that message, you might peek here to see what this page says about sshd:
    Home » Server Status » Service Status

    If you go here:
    Home » Service Configuration » Service Manager

    You'll see that sshd is (or should be) Enabled. And, the option to Monitor, Enabled as well. Meaning the system will check to make sure these services are up, if not, it will attempt to start them.


    Not sure what they mean by this exactly:
    But, you could go here:
    Home » Security Center » Host Access Control

    And modify that file as mentioned here:
    Re: Failed: sshd after /upcp - cPanel Forums
    (you might like to read that full thread first of course)
     
  3. synaptyx

    synaptyx Registered

    Joined:
    Jun 11, 2010
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    1
    Thanks, Infopro! I'll take a look at that. :D
     
  4. Infopro

    Infopro cPanel Sr. Product Evangelist
    Staff Member

    Joined:
    May 20, 2003
    Messages:
    14,478
    Likes Received:
    203
    Trophy Points:
    63
    Location:
    Pennsylvania
    cPanel Access Level:
    Root Administrator
    Twitter:
    Happy to help.


    GL!
     
Loading...

Share This Page