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!

SSH Password Authorization Tweak

Discussion in 'General Discussion' started by Bashed, Jun 17, 2015.

  1. Bashed

    Bashed Well-Known Member

    Joined:
    Dec 18, 2013
    Messages:
    113
    Likes Received:
    3
    Trophy Points:
    18
    cPanel Access Level:
    Root Administrator
    Ok, if I disable password auth in whm and use ssh key for root, I am not able to log in unless I enable direct root login access in sshd config. Is this normal or is there another workaround?

    I use Secure CRT ssh client. I already generated a 2048 DSA pub key and imported it, authorized it. But, because direct root is disabled, it doesn't work.
     
  2. cPanelMichael

    cPanelMichael Technical Support Community Manager
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    45,183
    Likes Received:
    1,935
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    Hello :)

    This is only the case if "PermitRootLogin" is set to "No" in the /etc/ssh/sshd_config file. You can set this entry to "Yes" and restart the SSHd service if you want to allow access to the "root" user (you can still disable password authentication). There's actually a full guide on securing SSH on the following thread if it's something you are interested in:

    SSH Hardening

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

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