Uploaded image for project: 'R10K'
  1. R10K
  2. RK-331

Misleading error message when ssh key format is incorrect

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Normal
    • Resolution: Duplicate
    • Affects Version/s: r10k 2.6.3
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None
    • Template:
    • Method Found:
      Needs Assessment
    • QA Risk Assessment:
      Needs Assessment

      Description

      When generating an ssh keypair using ssh-keygen, the "-o" option allows the private key to be generated in OpenSSH format instead of the standard/default PEM format.

      r10k can only handle the private key in PEM format. Trying to use a keypair in the OpenSSH format results in the error message:

      Failed to authenticate SSH session: Unable to extract public key from private key file: Wrong passphrase or invalid/unrecognized private key file format at /opt/puppetlabs/server/data/puppetserver/r10k/<string generated from the git repository location>

      This error message is misleading - it should instead reference the private key file location. There should also be notes in the documentation advising that the private key must be in PEM format; currently, there is no indication that the OpenSSH format is not compatible with r10k/code manager.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              Unassigned Unassigned
              Reporter:
              slamble Stuart Lamble
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Zendesk Support