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:
    284
    Likes Received:
    13
    Trophy Points:
    68
    cPanel Access Level:
    Root Administrator
    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:
    284
    Likes Received:
    13
    Trophy Points:
    68
    cPanel Access Level:
    Root Administrator
    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:
    36,471
    Likes Received:
    1,217
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
  4. durangod

    durangod Well-Known Member

    Joined:
    May 12, 2012
    Messages:
    284
    Likes Received:
    13
    Trophy Points:
    68
    cPanel Access Level:
    Root Administrator
    Thanks again for the link
     
    cPanelMichael likes this.
  5. Spork Schivago

    Spork Schivago Well-Known Member

    Joined:
    Jan 21, 2016
    Messages:
    462
    Likes Received:
    49
    Trophy Points:
    28
    Location:
    corning, ny
    cPanel Access Level:
    Root Administrator
    That command is if you're running Linux. Putty cannot use id_dsa and id_dsa.pub directly.

    You can download your private key (whatever you called it instead of id_dsa) and use something like PuTTYGen. It sounds like you already did this though and setup Putty to use the .ppk file you created.

    In Windows, I use PuTTYTray (which allows me to load keys off an external source, like a thumb drive). In PuTTYTray, there's a Session's option and under there, there's a logging option. Not sure if that's a PuTTY feature or just a PuTTYTray feature, but you might want to enable logging and capture all session output, to get a better idea of what's going on. You could share the log here if you wanted.
     
  6. durangod

    durangod Well-Known Member

    Joined:
    May 12, 2012
    Messages:
    284
    Likes Received:
    13
    Trophy Points:
    68
    cPanel Access Level:
    Root Administrator
    Thanks Spork
     
Loading...

Share This Page