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!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

SSHD not working.

Discussion in 'General Discussion' started by Linux_man, Oct 21, 2016.

Tags:
  1. Linux_man

    Linux_man Member

    Joined:
    Oct 21, 2016
    Messages:
    5
    Likes Received:
    1
    Trophy Points:
    3
    Location:
    Costa Rica
    cPanel Access Level:
    Root Administrator
    i have an issue with the service sshd in my server with CENTOS 7, and Cpanel/WHM installed, for some reason the service stopped and now i cant restart it, when i try to restar the service from whm configuration, it fails with the following message:

    Waiting for “sshd” to start ……waiting for “sshd” to initialize ………failed.

    Service Error (XID 8wutgt) The “sshd” service failed to start.

    Startup Log Oct 21 16:05:05 ************ systemd[1]: sshd.service: main process exited, code=exited, status=255/n/a Oct 21 16:05:05 ************ systemd[1]: Unit sshd.service entered failed state. Oct 21 16:05:05 ************ systemd[1]: sshd.service failed.

    Log Messages Oct 21 16:05:05 gtcr sshd: /etc/ssh/sshd_config line 157: garbage at end of line; "no".

    sshd has failed. Contact your system administrator if the service does not automagically recover.


    So... things i already tried:

    • Reinstall open-ssh with yum
    • Restart my server
    • Disable and enable sshd
    I still have console access since my hosting provider also give me the option to access trough VNC console access, but i can't anymore from putty, and im getting so many mails about ssh fails.

    Thanks in advance for your time and help.
     
  2. cPLevey

    cPLevey Technical Analyst Supervisor
    Staff Member

    Joined:
    Dec 3, 2015
    Messages:
    44
    Likes Received:
    8
    Trophy Points:
    83
    Location:
    Houston, TX
    cPanel Access Level:
    Root Administrator
    @Linux_man Sorry to hear you're having issues!

    As indicated in that log entry, it appears your sshd_config file has some issues or unrecognized characters. Have you tried moving that configuration file out of the way before reinstalling openSSH?

    I'd recommend trying the following:
    Code:
    mv -v /etc/ssh/sshd_config{,.broken}; yum reinstall openssh-server
    Keep in mind if you have any non-default configurations you'll need to change the new configuration file after successfully reinstalling openSSH.
     
    jonam_mafia and Linux_man like this.
  3. Linux_man

    Linux_man Member

    Joined:
    Oct 21, 2016
    Messages:
    5
    Likes Received:
    1
    Trophy Points:
    3
    Location:
    Costa Rica
    cPanel Access Level:
    Root Administrator
    Hello, thanks for your response, actually i found the problem inside the config file, i just removed the line wich was misspelled, and now its operational, thanks a lot.
     
  4. cPLevey

    cPLevey Technical Analyst Supervisor
    Staff Member

    Joined:
    Dec 3, 2015
    Messages:
    44
    Likes Received:
    8
    Trophy Points:
    83
    Location:
    Houston, TX
    cPanel Access Level:
    Root Administrator
    Awesome news! I'm glad you were able to get this fixed!
     
Loading...

Share This Page