linuxgu...@gmail.com schrieb am Freitag, 7. März 2025 um 00:03:02 UTC+1:

I have a problem with the EC2 plugin. 

1. Amazon EC2 Credentials work, after entering credentials in the Jenkins, 
I am able to select the credential and it connects, is able to properly 
populate the region
2.  I've tried using three different ssh keys, first ECDSA, second RSA 3072 
bits, third RSA 2048.  With all of them, clicking the Test Connection 
button returns the error "A problem occurred while processing the request."
3.  From the logs, the first few lines of the java exception is:

Mar 06, 2025 2:35:03 PM WARNING 
hudson.init.impl.InstallUncaughtExceptionHandler handleException
Caught unhandled exception with ID 1560e6da-9308-4daa-aa0c-e008e82496f3
java.io.IOException: unrecognised object: OPENSSH PRIVATE KEY



This could be a unsupported ssh key format 
For rsa key ensure the file looks like:
```
-----BEGIN RSA PRIVATE KEY-----
...
-----END RSA PRIVATE KEY-----
```

for ecdsa: 
```
-----BEGIN EC PRIVATE KEY-----
....
-----END EC PRIVATE KEY-----
```





 

at org.bouncycastle.openssl.PEMParser.readObject(Unknown Source)
at jenkins.bouncycastle.api.PEMEncodable.decode(PEMEncodable.java:170)
at jenkins.bouncycastle.api.PEMEncodable.decode(PEMEncodable.java:150)

4.  The timestamp on the log entry shows it happens immediately.
5.  All three ssh keys were created on a Mac

Jenkins version 2.419


This is a  very old (2.419: August 14, 2023) version with multiple security 
problems, you should update to a supported (probably  a LTS version, when 
using the weeky version you are really expected to update weekly.).
 It could well be that this key format is supported by more recent 
bouncycastle versions.
 

Amazon EC2 Version1715.vb_9e9e841ca_94

Looking at the EC2 console, I see that no instance is created.

I currently have no idea what's going on, was hoping someone here might be 
able to help.

Thanks in advance

JBB

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion visit 
https://groups.google.com/d/msgid/jenkinsci-users/1ee47942-5aca-45d3-97b6-c7bf2e994ce3n%40googlegroups.com.

Reply via email to