SSH keys from Puttygen

    • OMV 2.x
    • SSH keys from Puttygen

      Hello everyone,

      I'm trying to import a couple of keys from PuttyGen (exported private key and public key from PuttyGen) but I keep getting an error.

      The private Key I use is the one from "Export OpenSSH Key" and has a format like:

      Source Code

      1. -----BEGIN RSA PRIVATE KEY-----
      2. Proc-Type: 4,ENCRYPTED
      3. DEK-Info: DES-EDE3-CBC,5FEA76B59894B00C
      4. [Content]
      5. -----END RSA PRIVATE KEY-----


      The public key instead comes from "Public key for pasting into OpenSSH authorized_keys file" and has a format like:

      Source Code

      1. ssh-rsa [Content] {Comment]


      Despite that I keep getting the following error:

      Source Code

      1. Invalid private key: error:0906A068:PEM routines:PEM_do_header:bad password read
      2. Error #6000:
      3. exception 'OMVException' with message 'Invalid private key: error:0906A068:PEM routines:PEM_do_header:bad password read' in /usr/share/openmediavault/engined/rpc/certificatemgmt.inc:552
      4. Stack trace:
      5. #0 [internal function]: OMVRpcServiceCertificateMgmt->setSsh(Array, Array)
      6. #1 /usr/share/php/openmediavault/rpcservice.inc(125): call_user_func_array(Array, Array)
      7. #2 /usr/share/php/openmediavault/rpc.inc(79): OMVRpcServiceAbstract->callMethod('setSsh', Array, Array)
      8. #3 /usr/sbin/omv-engined(500): OMVRpc::exec('CertificateMgmt', 'setSsh', Array, Array, 1)
      9. #4 {main}


      Can I kindly ask for some directions please?

      Thank you.

      Best regards,