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!

Give access to someone via SSH key

Discussion in 'Security' started by greektranslator, Nov 23, 2018.

  1. greektranslator

    greektranslator Well-Known Member

    Joined:
    Jun 5, 2011
    Messages:
    58
    Likes Received:
    0
    Trophy Points:
    56
    Location:
    Greece
    cPanel Access Level:
    Root Administrator
    How do I setup server access for a third party via an SSH Key? Do I ask them for their public key? If yes, where do I put it and how? I already use one to log in (I have used SSH Password Authorization Tweak to disable root log in). I use CENTOS 7
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
    #1 greektranslator, Nov 23, 2018
    Last edited: Nov 23, 2018
  2. ronaldst

    ronaldst Well-Known Member

    Joined:
    Feb 22, 2016
    Messages:
    78
    Likes Received:
    11
    Trophy Points:
    8
    Location:
    Norway
    cPanel Access Level:
    Root Administrator
    If the user in question got a cPanel account he can add his own key from the control panel.

    It's also possible to give access to SSH directly from the web terminal function in cPanel (introduced a while ago).

    If none of these options are viable, he would need to give you the public key for you to add to his account.

    The public key is added to the file /home/username/.ssh/authorized_keys.

    If setting this up manually you got to make sure file permission to .ssh directory (0700) and authorized_keys (0600) file is set correctly and owned by the user.

    There is a lot of documentation to how set up and secure SSH on the internet. RedHat documentation is a good place to start if you are new and want to learn more.
     
    #2 ronaldst, Nov 23, 2018
    Last edited: Nov 23, 2018
    cPanelLauren likes this.
  3. cPanelLauren

    cPanelLauren Forums Analyst II Staff Member

    Joined:
    Nov 14, 2017
    Messages:
    6,262
    Likes Received:
    481
    Trophy Points:
    233
    Location:
    Houston
    cPanel Access Level:
    DataCenter Provider
    Thanks for providing that information @ronaldst!

    @greektranslator please let us know if you have any further concerns/questions on this.

    Thanks!
     
    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