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.

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:
    78
    Likes Received:
    1
    Trophy Points:
    8
    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 Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,736
    Likes Received:
    661
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    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.
     
Loading...

Share This Page