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.

SSHd falling down

Discussion in 'General Discussion' started by Kent Brockman, Oct 17, 2008.

  1. Kent Brockman

    Kent Brockman Well-Known Member

    Joined:
    Jan 20, 2008
    Messages:
    1,130
    Likes Received:
    3
    Trophy Points:
    38
    Location:
    Buenos Aires, Argentina
    cPanel Access Level:
    Root Administrator
    Twitter:
    Hi, I want to comment that since I've upgraded to WHM 11.23.2 cPanel 11.23.6-S27698, the SSHd daemon is turning off.

    No clues of what is happening.
    What can I look for to verify if anything is wrong?

    May sshd be added to the Service Manager in order to chkservd taking it in account when verifying the uptime of those services?

    Thank you
     
  2. cPanelKenneth

    cPanelKenneth cPanel Development
    Staff Member

    Joined:
    Apr 7, 2006
    Messages:
    4,458
    Likes Received:
    22
    Trophy Points:
    38
    cPanel Access Level:
    Root Administrator
    I've passed the request about chkservd monitoring of sshd to the developers.

    As for the problem you are having, is there anything in any system log file that gives you a clue? Have you tried starting sshd manually for helpful output? What is the failure trend? After a certain amount of time? After a login?
     
  3. Kent Brockman

    Kent Brockman Well-Known Member

    Joined:
    Jan 20, 2008
    Messages:
    1,130
    Likes Received:
    3
    Trophy Points:
    38
    Location:
    Buenos Aires, Argentina
    cPanel Access Level:
    Root Administrator
    Twitter:
    Great. That will certainly be a cool enhancement.

    In fact, the Service Manager should allow the admin to add other services to be monitored as well. This one alternative would be interesting since different production servers may have different interests and needs of things being monitored.


    I still coudlnt determine after what conditions is the sshd failing.
    When it is down, I can perfectly turn it on via WHM, restarting the service. I do use the Configserver Explorer, which gives me access to the disk in a similar way ssh would work, but via web, and I was able to run succesfully a "service sshd start" command to get sshd working properly.
    I don't find any reference or clue in secure and messages files. Any other file to take a look inside?

    Today it has been working fine. :rolleyes:
     
  4. cPanelKenneth

    cPanelKenneth cPanel Development
    Staff Member

    Joined:
    Apr 7, 2006
    Messages:
    4,458
    Likes Received:
    22
    Trophy Points:
    38
    cPanel Access Level:
    Root Administrator
    It is already possible to add different services for Service Manager (aka chservd) to monitor. An appropriate file needs added to /etc/chkserv.d and an entry added to /etc/chkserv.d/chkservd.conf


    As for the SSHD issue in particular, you can increase the logging verbosity to see if that gives you any more information.
     
  5. Kent Brockman

    Kent Brockman Well-Known Member

    Joined:
    Jan 20, 2008
    Messages:
    1,130
    Likes Received:
    3
    Trophy Points:
    38
    Location:
    Buenos Aires, Argentina
    cPanel Access Level:
    Root Administrator
    Twitter:
    I see. But I don't understand the syntax of that files. Where can I get it better explained?


    Where do I increase the verbosity?

    Thanks
     
  6. cPanelDavidG

    cPanelDavidG Technical Product Specialist

    Joined:
    Nov 29, 2006
    Messages:
    11,279
    Likes Received:
    8
    Trophy Points:
    38
    Location:
    Houston, TX
    cPanel Access Level:
    Root Administrator
    There is some documentation on this in the Troubleshooting presentation slides from the 2008 cPanel Conference: http://www.cpanel.net/conference/08/files/Troubleshooting.pdf beginning on slide 17.

    Additionally, I did go over the syntax of the files in greater detail in my Customizing cPanel presentation from the 2007 cPanel Conference: http://www.cpanel.net/docs/seminar07/Customizing_cPanel.pdf beginning on slide 41
     
  7. cPanelKenneth

    cPanelKenneth cPanel Development
    Staff Member

    Joined:
    Apr 7, 2006
    Messages:
    4,458
    Likes Received:
    22
    Trophy Points:
    38
    cPanel Access Level:
    Root Administrator
    The verbosity can be increased in the sshd_config file. The LogLevel defaults to INFO. Changing it to DEBUG or TRACE will increase the amount of information that is logged. After making the change, you will need to restart the SSH daemon.
     
Loading...

Share This Page