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.

SSH Failure

Discussion in 'General Discussion' started by Jorel, Apr 9, 2014.

  1. Jorel

    Jorel Well-Known Member

    Joined:
    Aug 15, 2003
    Messages:
    45
    Likes Received:
    0
    Trophy Points:
    6
    I was weary of running this for fear of breaking things. I ran the upgrade and it worked, but now I can't restart the SSH Daemon via the WHM. SSH is still running, but I don't want to try restarting it via shell in case it breaks my SSH access altogether.

    Code:
    Restarting SSH Daemon
    
    Waiting for sshd to restart....finished.
    
    sshd (/usr/sbin/sshd) running as root with PID 8498 (pidfile check method)
    
    sshd: [ != SSH]
    sshd has failed, please contact the sysadmin.
    
    Any suggestions on how to fix this?
     
  2. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,854
    Likes Received:
    676
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    Hello :)

    I moved this post into it's own thread for you. Do you have SSH running on a non-standard port? Do you have console access in the event SSH fails when restarting it via the command line?

    Thank you.
     
  3. Jorel

    Jorel Well-Known Member

    Joined:
    Aug 15, 2003
    Messages:
    45
    Likes Received:
    0
    Trophy Points:
    6
    Thank you for your help. SSH is running on port 22. I do not have console access.
     
  4. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,854
    Likes Received:
    676
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    Do you see that SSH is running from the command line? If so, restarting it via the command line should not perform a different action compared to when you restart it via Web Host Manager.

    Thank you.
     
  5. Jorel

    Jorel Well-Known Member

    Joined:
    Aug 15, 2003
    Messages:
    45
    Likes Received:
    0
    Trophy Points:
    6
    # service sshd status
    openssh-daemon (pid 8498) is running...
     
  6. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,854
    Likes Received:
    676
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    It's likely SSHd did not restart fast enough for Web Host Manager to detect it as running. Thus, the SSH service restarted successfully, but WHM listed it as "Failed" because it did not restart fast enough.

    Thank you.
     
Loading...

Share This Page