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.

Cannot get Public Key to work

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

  1. PCZero

    PCZero Well-Known Member

    Joined:
    Dec 13, 2003
    Messages:
    552
    Likes Received:
    38
    Trophy Points:
    178
    Location:
    Earth
    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 Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    36,350
    Likes Received:
    1,209
    Trophy Points:
    363
    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.
     
Loading...

Share This Page