Results 1 to 4 of 4

Thread: SSH - public key- cpanel - Ubuntu

  1. #1
    Registered User
    Join Date
    Jun 2010
    Posts
    4

    Default SSH - public key- cpanel - Ubuntu

    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. #2
    cPanel Partner NOC cPanel Partner NOC Badge
    Join Date
    Oct 2003
    Posts
    2,002

    Default

    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"
    Lowest Host/Empire Technology LLC
    Affordable hosting solutions http://empire-hosting.net
    List Your hosting site FREE in http://hostgeneration.com

  3. #3
    Registered User
    Join Date
    Jun 2010
    Posts
    4

    Default

    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. #4
    cPanel Product Evangelist Infopro's Avatar
    Join Date
    May 2003
    Location
    Pennsylvania
    Posts
    10,080
    cPanel/WHM Access Level

    Root Administrator

    Lightbulb

    AFAIK, Ubuntu is not a cPanel supported OS.

Similar Threads

  1. Authentication cPanel with public key
    By rdsdesign in forum cPanel Developers
    Replies: 8
    Last Post: 06-16-2010, 08:52 AM
  2. SSH access via Public Key Auth for cPanel users - How?
    By jols in forum cPanel & WHM Discussions
    Replies: 1
    Last Post: 02-28-2008, 03:58 AM
  3. Server refused our key ( Private SSH-Key ) HELP!!!
    By ModServ in forum cPanel & WHM Discussions
    Replies: 7
    Last Post: 09-24-2007, 04:29 AM
  4. ssh public/private key log in failure
    By johnnywalker in forum cPanel & WHM Discussions
    Replies: 1
    Last Post: 07-23-2007, 05:03 PM
  5. Replies: 1
    Last Post: 03-06-2006, 07:28 PM