I am noob, Ask for more information please if it is needed. I try to create basic ssh task get
Error occurred while running Task '(2)' of type com.atlassian.bamboo.plugins.bamboo-scp-plugin:sshtask.
java.lang.ClassCastException: class net.i2p.crypto.eddsa.EdDSAPublicKey cannot be cast to class net.i2p.crypto.eddsa.EdDSAPublicKey (net.i2p.crypto.eddsa.EdDSAPublicKey is in unnamed module of loader com.atlassian.bamboo.agent.bootstrap.classloading.ConditionallyDelegatingUrlClassLoader @565ff265; net.i2p.crypto.eddsa.EdDSAPublicKey is in unnamed module of loader org.apache.felix.framework.BundleWiringImpl$BundleClassLoader @56b5f44b) at net.schmizz.sshj.common.KeyType$6.writePubKeyContentsIntoBuffer(KeyType.java:202) at net.schmizz.sshj.common.KeyType.putPubKeyIntoBuffer(KeyType.java:388) at net.schmizz.sshj.common.Buffer.putPublicKey(Buffer.java:499) at net.schmizz.sshj.userauth.method.KeyedAuthMethod.putPubKey(KeyedAuthMethod.java:55) at net.schmizz.sshj.userauth.method.AuthPublickey.buildReq(AuthPublickey.java:62) at net.schmizz.sshj.userauth.method.AuthPublickey.buildReq(AuthPublickey.java:81) at net.schmizz.sshj.userauth.method.AbstractAuthMethod.request(AbstractAuthMethod.java:68) at net.schmizz.sshj.userauth.UserAuthImpl.authenticate(UserAuthImpl.java:73) at net.schmizz.sshj.SSHClient.auth(SSHClient.java:221) at net.schmizz.sshj.SSHClient.authPublickey(SSHClient.java:342) at com.atlassian.bamboo.plugins.scp.SshTask.execute(SshTask.java:114) at com.atlassian.bamboo.task.TaskExecutorImpl.lambda$executeTasks$3(TaskExecutorImpl.java:323) at com.atlassian.bamboo.task.TaskExecutorImpl.executeTaskWithPrePostActions(TaskExecutorImpl.java:258) at com.atlassian.bamboo.task.TaskExecutorImpl.executeTasks(TaskExecutorImpl.java:323) at com.atlassian.bamboo.task.TaskExecutorImpl.execute(TaskExecutorImpl.java:118) at com.atlassian.bamboo.build.pipeline.tasks.ExecuteBuildTask.call(ExecuteBuildTask.java:73) at com.atlassian.bamboo.v2.build.agent.DefaultBuildAgent.executeBuildPhase(DefaultBuildAgent.java:205) at com.atlassian.bamboo.v2.build.agent.DefaultBuildAgent.build(DefaultBuildAgent.java:177) at com.atlassian.bamboo.v2.build.agent.BuildAgentControllerImpl.lambda$waitAndPerformBuild$0(BuildAgentControllerImpl.java:169) at com.atlassian.bamboo.variable.CustomVariableContextImpl.withVariableSubstitutor(CustomVariableContextImpl.java:118) at com.atlassian.bamboo.v2.build.agent.BuildAgentControllerImpl.waitAndPerformBuild(BuildAgentControllerImpl.java:162) at com.atlassian.bamboo.v2.build.agent.DefaultBuildAgent.lambda$start$0(DefaultBuildAgent.java:122) at com.atlassian.bamboo.utils.BambooRunnables$1.run(BambooRunnables.java:48) at com.atlassian.bamboo.security.ImpersonationHelper.runWith(ImpersonationHelper.java:26) at com.atlassian.bamboo.security.ImpersonationHelper.runWithSystemAuthority(ImpersonationHelper.java:17) at com.atlassian.bamboo.security.ImpersonationHelper$1.run(ImpersonationHelper.java:41) at java.base/java.lang.Thread.run(Thread.java:829)
Hi @Apostal Fales ,
Welcome to Atlassian Community!
May I know which type of SSH key (RSA, Ed25519, etc.) you used for SSH key generation to connect to the SSH server?
I think you stumbled on this Bamboo Bug BAM-21903: SSH or SCP tasks will fail if the SSH private key is of type ed25519 which was raised for Bamboo version <= 8.2.4. Please refer to the BUG report for more details.
This was fixed in Bamboo versions 9.1.0, 8.2.7, and 9.0.2
Can you please confirm your Bamboo version to confirm if you are affected by this Bug? If you are using the affected Bamboo version, you can either upgrade your Bamboo version to one of the fixed versions or use any of the workarounds mentioned in the BUG report.
Best Regards,
Jyothi
*please don't forget to Accept the answer if your query was answered**
You absolutly correct thank you so much. My version was 8.2.6, and ssh-keys ed25519. You didn’t just solve a problem; you illuminated a path for me. In the labyrinth of code, you were my guiding star. Best wishes)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.