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.

"Disable SSH password authentication" prevents server from restarting SSHd

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

  1. feldon27

    feldon27 Well-Known Member

    Joined:
    Mar 12, 2003
    Messages:
    111
    Likes Received:
    11
    Trophy Points:
    18
    Location:
    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:
    https://documentation.cpanel.net/display/ALD/SSH+Password+Authorization+Tweak

    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 Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,678
    Likes Received:
    653
    Trophy Points:
    113
    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.
     
Loading...

Share This Page