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.

I can't create RSA key for SSH, only DSA?

Discussion in 'General Discussion' started by tomfra, Dec 19, 2006.

  1. tomfra

    tomfra Well-Known Member

    Joined:
    Sep 30, 2002
    Messages:
    62
    Likes Received:
    0
    Trophy Points:
    6
    In the SSH keys manager I am given the option to create either a DSA or RSA key but the RSA key creation never goes through. I mean, nothing happens and there is no key added to the SSH key manager. No error message either.

    Any ideas what could be the reason? I'd really prefer RSA...

    Tomas
     
  2. rhenderson

    rhenderson Well-Known Member

    Joined:
    Apr 21, 2005
    Messages:
    785
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Oklahoma
    cPanel Access Level:
    Root Administrator
    Did you look and see if it was making the key? Maybe it is there.
    Look in /usr/share/ssl/private/
     
  3. tomfra

    tomfra Well-Known Member

    Joined:
    Sep 30, 2002
    Messages:
    62
    Likes Received:
    0
    Trophy Points:
    6
    Nope, it's not there. There are just some 2 years old files in that directory.

    Tomas
     
  4. rhenderson

    rhenderson Well-Known Member

    Joined:
    Apr 21, 2005
    Messages:
    785
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Oklahoma
    cPanel Access Level:
    Root Administrator
    It was just a thought..... Only other thing I could suggest is do a /scripts/upcp --force and try again.
     
  5. GCIS

    GCIS Active Member

    Joined:
    Dec 12, 2006
    Messages:
    26
    Likes Received:
    0
    Trophy Points:
    1
    From a root shell:
    Code:
    # ssh-keygen -t rsa [other options]
    
     
  6. tomfra

    tomfra Well-Known Member

    Joined:
    Sep 30, 2002
    Messages:
    62
    Likes Received:
    0
    Trophy Points:
    6
    Thanks, that worked!

    The SSH key manager in WHM is somewhat buggy in my opinion. For example the authenticating/de-authenticating keys through it seems to be quite unreliable - the current status of the key is very often not displayed properly. And I am not sure if it's a good idea to create the Putty formatted .ppk private key with "read by others" permission.

    Tomas
     
Loading...

Share This Page