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!

Cannot get Public Key to work

Discussion in 'Security' started by PCZero, Jan 19, 2015.

  1. PCZero

    PCZero Well-Known Member

    Dec 13, 2003
    Likes Received:
    Trophy Points:
    I am attempting to set up a new box. I want to have shell set up as follows.

    Direct root login disabled.
    Public Key authorization only.
    SSH running on an alternate port.
    SSH running on an alternate IP.

    I have created a user at shell with the useradd command. In WHM I added that user to the wheel group. I successfully logged into shell with that user and su - root. I successfully disabled direct root login. I have SSH running on an alternate port and alternate IP.

    For the life of me I cannot get Public Key to work. Do I need to specifically enable PublicKey in the sshd_conf file or take some other action to ensure it is enabled?
  2. cPanelMichael

    cPanelMichael Technical Support Community Manager
    Staff Member

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

    Please let us know if the following post helps:

    Wheel Group SSH Key

    Also, note that you may find the following thread helpful:

    SSH Hardening

    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