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!

"Disable SSH password authentication" prevents server from restarting SSHd

Discussion in 'Security' started by feldon27, Dec 21, 2014.

  1. feldon27

    feldon27 Well-Known Member

    Mar 12, 2003
    Likes Received:
    Trophy Points:
    Houston, TX
    So I saw this in the cPanel Security Advisor and foolishly thought that I'd follow its advice:
    I closely followed the instructions here:

    Despite setting up a Public and Private key, any attempt after this to restart the ssh daemon is greeted with this:
    I had to resort to this hackish instruction to restart the sshd server in safe mode. I have since re-enabled SSH Password Authentication. I can now SSH into the server, but still, it is now impossible to restart sshd.
  2. cPanelMichael

    cPanelMichael Technical Support Community Manager
    Staff Member

    Apr 11, 2011
    Likes Received:
    Trophy Points:
    cPanel Access Level:
    Root Administrator
    Hello :)

    Please review the following thread and let us know if this tutorial is helpful:

    SSH Hardening

    It's a bit more in-depth than what we offer in the documentation so it may list a step or two that you forgot to take.

    Thank you.
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice