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.

Error when Convert the “id_rsa” key to PPK format:

Discussion in 'Security' started by nbk, Oct 17, 2015.

  1. nbk

    nbk Registered

    Joined:
    Oct 17, 2015
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    China
    cPanel Access Level:
    Root Administrator
    When I try to Convert the “id_rsa” key to PPK format:
    I get the following error message.
    Error moving temp file to /home/xxxxx/.ssh/putty/id_rsa.ppk: Invalid argument

    It's not a folder permission and ownership problem.
    I know I can use puttygen to convert. But I would like to found out what is causing this problem.

    Any help is greatly appreciated.
     
  2. nbk

    nbk Registered

    Joined:
    Oct 17, 2015
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    China
    cPanel Access Level:
    Root Administrator
    Thank you for your reply.

    From cpanel account, under Security, SSH Access, Manage SSH Keys, Private Keys, View/Download
    There is a "Convert the “id_rsa” key to PPK format:".
    After keying in the passphrase, I get the following error.
    Error moving temp file to /home/xxxxxx/.ssh/putty/id_rsa.ppk: Invalid argument

    The ppk file could not be created.
     
  3. nbk

    nbk Registered

    Joined:
    Oct 17, 2015
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    China
    cPanel Access Level:
    Root Administrator
    Thank you for your reply.

    I realize the problem only occurs when there is already a file with the same name in the output directory. Once I delete that file, the conversion will work.

    Conversion will work with any new file name.
     
  4. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,678
    Likes Received:
    653
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
  5. TheRomb

    TheRomb Registered

    Joined:
    Sep 10, 2015
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Russia
    cPanel Access Level:
    DataCenter Provider
    This issue is still not fixed after 3 months. Got same problem, after removing ppk file manually issue was solved.
     
  6. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,678
    Likes Received:
    653
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    I've been unable to reproduce this issue with the Paper Lantern theme on cPanel version 56. Feel free to let us know if you encounter any additional issues.

    Thank you.
     
  7. doropezaTSV

    doropezaTSV Member

    Joined:
    Nov 17, 2015
    Messages:
    9
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Venezuela
    cPanel Access Level:
    Root Administrator
    Hello,

    I've gotten the same error when try to convert the key for second time. Here is know to reproduce it:

    1. Create a new key with a passphrase
    2. On private key clic view/download
    3. Convert to putty format
    4. Go to Manage root’s SSH Keys main page
    5. Repeat steps 2 and 3 and you will get the error.

    Also If you delete the public and private keys, the putty file remains in the /root/.ssh/putty dir.
     
    #7 doropezaTSV, May 23, 2016
    Last edited: May 23, 2016
  8. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,678
    Likes Received:
    653
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    Hello,

    Internal case CPANEL-6111 is open to address this issue. There's currently no time frame on a resolution, but I will update this thread with more information as it becomes available. The temporary workaround remains to manually remove the the PPK file from the affected directory.

    Thank you.
     
  9. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,678
    Likes Received:
    653
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    To update, the resolution is included in cPanel 58:

    Fixed case CPANEL-6111: Ensure SSH keys can be converted to Putty format in all locales

    Note that cPanel 58 is currently only available on the Edge build tier. You can find more information on the release process at:

    cPanel & WHM Product Versions and the Release Process

    Thank you.
     
Loading...

Share This Page