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 - public key- cpanel - Ubuntu

Discussion in 'General Discussion' started by dramos, Sep 23, 2010.

  1. dramos

    dramos Registered

    Joined:
    Jun 18, 2010
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    51
    Hello:

    I have tried to make ssh work with public keys for some time now but i just can't. I try to follow all the tutorial out there but it just doesnt work.

    Im trying to set this up so i can ssh to root in my server with cpanel. i have tried creating the keys in cpanel authorizing then copying to my local computer. i also tried generating the keys in my local computer then importing in cpanel.

    Any advise will be appreciated.

    Thanks in advance.

    This is what i get when i ssh verbose

    Permission denied (publickey,gssapi-with-mic).
     
  2. dalem

    dalem Well-Known Member
    PartnerNOC

    Joined:
    Oct 24, 2003
    Messages:
    2,664
    Likes Received:
    69
    Trophy Points:
    203
    Location:
    SLC
    cPanel Access Level:
    DataCenter Provider
    I assume you have ran ssh-keygen -t dsa & generated the keys


    copy the id_dsa.pub from your Ubuntu server to

    authorized_keys file of your cpanel server

    you may have to authorize them in WHM "Manage SSH Keys"
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. dramos

    dramos Registered

    Joined:
    Jun 18, 2010
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    51
    I got this to work for account in cpanel but not for the root. i know i can't logint to the root so i have to logint to the main account and the su - but publick key does not work for the root or the main account.

    when i create a key pair the last part says = root@domain.com but since root login is not allowed i change it to mainaccount@domain.com and then try to use but i get the following error

    Enter passphrase for key 'id_dsa':
    debug1: read PEM private key done: type DSA
    debug1: Authentications that can continue: publickey,password,keyboard-interactive
    debug1: Next authentication method: keyboard-interactive
    Password:
     
  4. Infopro

    Infopro cPanel Sr. Product Evangelist
    Staff Member

    Joined:
    May 20, 2003
    Messages:
    16,164
    Likes Received:
    370
    Trophy Points:
    583
    Location:
    Pennsylvania
    cPanel Access Level:
    Root Administrator
    Twitter:
    AFAIK, Ubuntu is not a cPanel supported OS.
     
    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