-
Bug
-
Resolution: Fixed
-
Major
-
Jenkins version : 2.361.2
EC2 plugin version : 2.0.4
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.