SSHD not working.
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:
[LIST]
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.
-
@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: 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.0 -
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. 0 -
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.
Awesome news! I'm glad you were able to get this fixed!0
Please sign in to leave a comment.
Comments
3 comments