Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-70992

ED25519 shows the error This doesn't look like a private key at all

XMLWordPrintable

      I have been trying to spin up MAC2 EC2 AMI using the Jenkins EC2 plugin which has a hard requirement to have the ssh key type as ED25519.

      We were able to create the machines directly with the ED15519 keytype and and able to create a base AMI out of that.

      But when I configure the ED25519 key in Jenkins and trying to use that as a 
      EC2 Key Pair's Private Key it comes with the below error,
       

      This doesn't look like a private key at all

       

      Apr 05, 2023 9:26:39 AM WARNING hudson.plugins.ec2.EC2Cloud getNewOrExistingAvailableSlave
      SlaveTemplate{description='builder', labels='builder'}. Exception during provisioning
      java.io.IOException: unrecognised object: OPENSSH PRIVATE KEY

       

      The key is with,

      -----BEGIN OPENSSH PRIVATE KEY-----
      -----END OPENSSH PRIVATE KEY----- 
      

      Any idea how to solve this ?

      searched through existing bugs reported but none provide a valid solution for the same.

            thoulen FABRIZIO MANFREDI
            bazzi basil boon
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: