java.io.IOException: Publickey authentication failed.

Jenkins JIRA | Richard Fagot | 4 months ago
  1. 0

    When lauching a job, the droplet is created but when the plugin try to connect using ssh key it fails. AVERTISSEMENT: Publickey authentication failed. java.io.IOException: Publickey authentication failed. at com.trilead.ssh2.auth.AuthenticationManager.authenticatePublicKey(AuthenticationManager.java:315) at com.trilead.ssh2.Connection.authenticateWithPublicKey(Connection.java:467) at com.dubture.jenkins.digitalocean.ComputerLauncher.launch(ComputerLauncher.java:154) at hudson.slaves.SlaveComputer$1.call(SlaveComputer.java:253) at jenkins.util.ContextResettingExecutorService$2.call(ContextResettingExecutorService.java:46) at java.util.concurrent.FutureTask.run(FutureTask.java:266) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) at java.lang.Thread.run(Thread.java:745) Caused by: java.io.IOException: Decrypted PEM has wrong padding, did you specify the correct password? at com.trilead.ssh2.crypto.PEMDecoder.removePadding(PEMDecoder.java:110) at com.trilead.ssh2.crypto.PEMDecoder.decryptPEM(PEMDecoder.java:287) at com.trilead.ssh2.crypto.PEMDecoder.decode(PEMDecoder.java:320) at com.trilead.ssh2.auth.AuthenticationManager.authenticatePublicKey(AuthenticationManager.java:224) ... 8 more The droplet created is a 512Mo with Ubuntu 16.04, user root using a public key declared in Digital Ocean console.

    Jenkins JIRA | 4 months ago | Richard Fagot
    java.io.IOException: Publickey authentication failed.
  2. 0

    SmartGit - gitosis

    nabble.com | 1 year ago
    java.io.IOException: Publickey authentication failed.
  3. Speed up your debug routine!

    Automated exception search integrated into your IDE

  4. 0

    connect to port SSH 22 through Eclipse

    Stack Overflow | 4 years ago | Abi
    java.io.IOException: Publickey authentication failed.
  5. 0

    ECDSA 521 bit keys auth always fails

    GitHub | 2 years ago | msoulatre-tt
    java.io.IOException: Invalid signature format

    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

      Decrypted PEM has wrong padding, did you specify the correct password?

      at com.trilead.ssh2.crypto.PEMDecoder.removePadding()
    2. Trilead
      Connection.authenticateWithPublicKey
      1. com.trilead.ssh2.crypto.PEMDecoder.removePadding(PEMDecoder.java:110)
      2. com.trilead.ssh2.crypto.PEMDecoder.decryptPEM(PEMDecoder.java:287)
      3. com.trilead.ssh2.crypto.PEMDecoder.decode(PEMDecoder.java:320)
      4. com.trilead.ssh2.auth.AuthenticationManager.authenticatePublicKey(AuthenticationManager.java:224)
      5. com.trilead.ssh2.Connection.authenticateWithPublicKey(Connection.java:467)
      5 frames
    3. com.dubture.jenkins
      ComputerLauncher.launch
      1. com.dubture.jenkins.digitalocean.ComputerLauncher.launch(ComputerLauncher.java:154)
      1 frame
    4. Hudson
      SlaveComputer$1.call
      1. hudson.slaves.SlaveComputer$1.call(SlaveComputer.java:253)
      1 frame
    5. jenkins.util
      ContextResettingExecutorService$2.call
      1. jenkins.util.ContextResettingExecutorService$2.call(ContextResettingExecutorService.java:46)
      1 frame
    6. 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