java.io.IOException: Publickey authentication failed.

Google Groups | vasu...@yahoo.com (JIRA) | 3 months ago
  1. 0

    [JIRA] (JENKINS-17366) ssh slave login via keyfile not working in 0.23

    Google Groups | 3 months ago | vasu...@yahoo.com (JIRA)
    java.io.IOException: Publickey authentication failed.
  2. Speed up your debug routine!

    Automated exception search integrated into your IDE

  3. 0

    I updated Jenkins to 1.514 using Jenkins SSH Slaves plugin 0.25 and all the connected nodes error with: <code> [05/02/13 11:26:09] [SSH] Opening SSH connection to x:22. ERROR: Failed to authenticate as x with credential=x-x-x-x-x java.io.IOException: Publickey authentication failed. at com.trilead.ssh2.auth.AuthenticationManager.authenticatePublicKey(AuthenticationManager.java:264) at com.trilead.ssh2.Connection.authenticateWithPublicKey(Connection.java:445) at com.cloudbees.jenkins.plugins.sshcredentials.impl.TrileadSSHPublicKeyAuthenticator.doAuthenticate(TrileadSSHPublicKeyAuthenticator.java:92) at com.cloudbees.jenkins.plugins.sshcredentials.SSHAuthenticator.authenticate(SSHAuthenticator.java:262) at com.cloudbees.jenkins.plugins.sshcredentials.SSHAuthenticator.authenticate(SSHAuthenticator.java:282) at hudson.plugins.sshslaves.SSHLauncher.openConnection(SSHLauncher.java:918) at hudson.plugins.sshslaves.SSHLauncher.launch(SSHLauncher.java:479) at hudson.slaves.SlaveComputer$1.call(SlaveComputer.java:223) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334) at java.util.concurrent.FutureTask.run(FutureTask.java:166) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1146) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) at java.lang.Thread.run(Thread.java:679) Caused by: java.io.IOException: Invalid PEM structure, '-----BEGIN...' missing at com.trilead.ssh2.crypto.PEMDecoder.parsePEM(PEMDecoder.java:138) at com.trilead.ssh2.crypto.PEMDecoder.decode(PEMDecoder.java:313) at com.trilead.ssh2.auth.AuthenticationManager.authenticatePublicKey(AuthenticationManager.java:173) ... 12 more [05/02/13 11:26:09] [SSH] Authentication failed. hudson.AbortException: Authentication failed. at hudson.plugins.sshslaves.SSHLauncher.openConnection(SSHLauncher.java:923) at hudson.plugins.sshslaves.SSHLauncher.launch(SSHLauncher.java:479) at hudson.slaves.SlaveComputer$1.call(SlaveComputer.java:223) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334) at java.util.concurrent.FutureTask.run(FutureTask.java:166) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1146) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) at java.lang.Thread.run(Thread.java:679) [05/02/13 11:26:09] [SSH] Connection closed. </code> The keys haven't changed and they worked fine before the upgrade...

    Jenkins JIRA | 4 years ago | bootstraponline
    java.io.IOException: Publickey authentication failed.
  4. 0

    I updated Jenkins to 1.514 using Jenkins SSH Slaves plugin 0.25 and all the connected nodes error with: <code> [05/02/13 11:26:09] [SSH] Opening SSH connection to x:22. ERROR: Failed to authenticate as x with credential=x-x-x-x-x java.io.IOException: Publickey authentication failed. at com.trilead.ssh2.auth.AuthenticationManager.authenticatePublicKey(AuthenticationManager.java:264) at com.trilead.ssh2.Connection.authenticateWithPublicKey(Connection.java:445) at com.cloudbees.jenkins.plugins.sshcredentials.impl.TrileadSSHPublicKeyAuthenticator.doAuthenticate(TrileadSSHPublicKeyAuthenticator.java:92) at com.cloudbees.jenkins.plugins.sshcredentials.SSHAuthenticator.authenticate(SSHAuthenticator.java:262) at com.cloudbees.jenkins.plugins.sshcredentials.SSHAuthenticator.authenticate(SSHAuthenticator.java:282) at hudson.plugins.sshslaves.SSHLauncher.openConnection(SSHLauncher.java:918) at hudson.plugins.sshslaves.SSHLauncher.launch(SSHLauncher.java:479) at hudson.slaves.SlaveComputer$1.call(SlaveComputer.java:223) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334) at java.util.concurrent.FutureTask.run(FutureTask.java:166) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1146) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) at java.lang.Thread.run(Thread.java:679) Caused by: java.io.IOException: Invalid PEM structure, '-----BEGIN...' missing at com.trilead.ssh2.crypto.PEMDecoder.parsePEM(PEMDecoder.java:138) at com.trilead.ssh2.crypto.PEMDecoder.decode(PEMDecoder.java:313) at com.trilead.ssh2.auth.AuthenticationManager.authenticatePublicKey(AuthenticationManager.java:173) ... 12 more [05/02/13 11:26:09] [SSH] Authentication failed. hudson.AbortException: Authentication failed. at hudson.plugins.sshslaves.SSHLauncher.openConnection(SSHLauncher.java:923) at hudson.plugins.sshslaves.SSHLauncher.launch(SSHLauncher.java:479) at hudson.slaves.SlaveComputer$1.call(SlaveComputer.java:223) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334) at java.util.concurrent.FutureTask.run(FutureTask.java:166) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1146) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) at java.lang.Thread.run(Thread.java:679) [05/02/13 11:26:09] [SSH] Connection closed. </code> The keys haven't changed and they worked fine before the upgrade...

    Jenkins JIRA | 4 years ago | bootstraponline
    java.io.IOException: Publickey authentication failed.

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.io.IOException

      Illegal len in DER object (1186)

      at com.trilead.ssh2.crypto.SimpleDERReader.readSequenceAsByteArray()
    2. Trilead
      Connection.authenticateWithPublicKey
      1. com.trilead.ssh2.crypto.SimpleDERReader.readSequenceAsByteArray(SimpleDERReader.java:136)
      2. com.trilead.ssh2.crypto.PEMDecoder.decode(PEMDecoder.java:355)
      3. com.trilead.ssh2.auth.AuthenticationManager.authenticatePublicKey(AuthenticationManager.java:224)
      4. com.trilead.ssh2.Connection.authenticateWithPublicKey(Connection.java:467)
      4 frames
    3. com.cloudbees.jenkins
      SSHAuthenticator.authenticate
      1. com.cloudbees.jenkins.plugins.sshcredentials.impl.TrileadSSHPublicKeyAuthenticator.doAuthenticate(TrileadSSHPublicKeyAuthenticator.java:109)
      2. com.cloudbees.jenkins.plugins.sshcredentials.SSHAuthenticator.authenticate(SSHAuthenticator.java:415)
      3. com.cloudbees.jenkins.plugins.sshcredentials.SSHAuthenticator.authenticate(SSHAuthenticator.java:435)
      3 frames
    4. hudson.plugins.sshslaves
      SSHLauncher$2.call
      1. hudson.plugins.sshslaves.SSHLauncher.openConnection(SSHLauncher.java:1212)
      2. hudson.plugins.sshslaves.SSHLauncher$2.call(SSHLauncher.java:711)
      3. hudson.plugins.sshslaves.SSHLauncher$2.call(SSHLauncher.java:706)
      3 frames
    5. Java RT
      Thread.run
      1. java.util.concurrent.FutureTask.run(FutureTask.java:266)
      2. java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
      3. java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
      4. java.lang.Thread.run(Thread.java:745)
      4 frames