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.

Having trouble understanding ssh key docs

Discussion in 'Security' started by durangod, Sep 29, 2016.

Tags:
  1. durangod

    durangod Well-Known Member

    Joined:
    May 12, 2012
    Messages:
    251
    Likes Received:
    10
    Trophy Points:
    18
    cPanel Access Level:
    Website Owner
    Hi, im trying to follow this..

    Manage root's SSH Keys - Documentation - cPanel Documentation

    but i have no clue what this means..

    sshsample.jpg

    am i suppose to enter that code into my putty form somewhere?

    i am not able to connect and i have done this several times and watched videos as well, it just says key refused.

    Here is what i have done...

    I created a key via putty generator
    I put the public key in the public key box on the server inside of import ssh key
    I gave the key a name on the server
    I gave the key a passphrase on the server
    I used the same passphrase in the putty generator
    I saved the priv key and the pub key on my computer
    I referenced the priv key file in the putty auth section
    I used the name of the login i want to use in the putty under data section
    I authorized the key in whm ssh section

    Now i try to log in and it says refused key.

    I verified i have all the public key in that box and no spaces.

    OK so now what?
     
    #1 durangod, Sep 29, 2016
    Last edited: Sep 29, 2016
  2. durangod

    durangod Well-Known Member

    Joined:
    May 12, 2012
    Messages:
    251
    Likes Received:
    10
    Trophy Points:
    18
    cPanel Access Level:
    Website Owner
    Well so far i have figured out that when you generate your key with putty generator, make sure that the comment input data on the form matches the name of your key on the server. In other words if your public key name on the server is jack1234, then the comment on the key you make has to be jack1234 (you will notice that it adds that comment to the end of your key.

    But now i get this little error message though

    Whats sad about this is that every time i have ever used cpanel in my life either vps or anything where i had to make a key, its always a fuss, its never just easy and its always changing, and never the same process. :(
     
  3. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,678
    Likes Received:
    651
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
  4. durangod

    durangod Well-Known Member

    Joined:
    May 12, 2012
    Messages:
    251
    Likes Received:
    10
    Trophy Points:
    18
    cPanel Access Level:
    Website Owner
    Thanks again for the link
     
    cPanelMichael likes this.

Share This Page