com.jcraft.jsch.JSchException: Auth cancel

Jenkins JIRA | Onno van der Straaten | 4 years ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

    Jenkins issues - [JIRA] [ssh] (JENKINS-17440) SSH Plugin throws auth cancel

    nabble.com | 1 year ago
    com.jcraft.jsch.JSchException: Auth cancel
  2. 0

    SSH plugin throws auth cancel with simplest configuration. On my jenkins server I can ssh to target machine using keys without passphrase. When I add SSH location using SSH Plugin this consistently fails with message below. {code}Started by user Onno van der Straaten Building in workspace .. repository executing script: ls [SSH] Exception:Auth cancel com.jcraft.jsch.JSchException: Auth cancel at com.jcraft.jsch.Session.connect(Session.java:451) at com.jcraft.jsch.Session.connect(Session.java:150) at org.jvnet.hudson.plugins.SSHSite.createSession(SSHSite.java:118) at org.jvnet.hudson.plugins.SSHSite.executeCommand(SSHSite.java:128) at org.jvnet.hudson.plugins.SSHBuilder.perform(SSHBuilder.java:60) at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:19) at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:814) at hudson.model.Build$BuildExecution.build(Build.java:199) at hudson.model.Build$BuildExecution.doRun(Build.java:160) at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:593) at hudson.model.Run.execute(Run.java:1568) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:237) Build step 'Execute shell script on remote host using ssh' marked build as failure Finished: FAILURE{code} On target machine /var/log/messages shows each time {code}Apr 3 08:26:13 mymachine sshd[12009]: Received disconnect from (ip): 3: com.jcraft.jsch.JSchException: Auth cancel{code}

    Jenkins JIRA | 4 years ago | Onno van der Straaten
    com.jcraft.jsch.JSchException: Auth cancel
  3. 0

    SSH plugin throws auth cancel with simplest configuration. On my jenkins server I can ssh to target machine using keys without passphrase. When I add SSH location using SSH Plugin this consistently fails with message below. {code}Started by user Onno van der Straaten Building in workspace .. repository executing script: ls [SSH] Exception:Auth cancel com.jcraft.jsch.JSchException: Auth cancel at com.jcraft.jsch.Session.connect(Session.java:451) at com.jcraft.jsch.Session.connect(Session.java:150) at org.jvnet.hudson.plugins.SSHSite.createSession(SSHSite.java:118) at org.jvnet.hudson.plugins.SSHSite.executeCommand(SSHSite.java:128) at org.jvnet.hudson.plugins.SSHBuilder.perform(SSHBuilder.java:60) at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:19) at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:814) at hudson.model.Build$BuildExecution.build(Build.java:199) at hudson.model.Build$BuildExecution.doRun(Build.java:160) at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:593) at hudson.model.Run.execute(Run.java:1568) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:237) Build step 'Execute shell script on remote host using ssh' marked build as failure Finished: FAILURE{code} On target machine /var/log/messages shows each time {code}Apr 3 08:26:13 mymachine sshd[12009]: Received disconnect from (ip): 3: com.jcraft.jsch.JSchException: Auth cancel{code}

    Jenkins JIRA | 4 years ago | Onno van der Straaten
    com.jcraft.jsch.JSchException: Auth cancel
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    [JENKINS-17440] SSH Plugin throws auth cancel - Jenkins JIRA

    jenkins-ci.org | 6 months ago
    com.jcraft.jsch.JSchException: Auth cancel

  1. jf-ast 2 times, last 3 weeks ago
  2. jstrayer 3 times, last 2 months ago
  3. abrazeneb 1 times, last 6 months ago
96 unregistered visitors
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. com.jcraft.jsch.JSchException

    Auth cancel

    at com.jcraft.jsch.Session.connect()
  2. JSch
    Session.connect
    1. com.jcraft.jsch.Session.connect(Session.java:451)
    2. com.jcraft.jsch.Session.connect(Session.java:150)
    2 frames
  3. org.jvnet.hudson
    SSHBuilder.perform
    1. org.jvnet.hudson.plugins.SSHSite.createSession(SSHSite.java:118)
    2. org.jvnet.hudson.plugins.SSHSite.executeCommand(SSHSite.java:128)
    3. org.jvnet.hudson.plugins.SSHBuilder.perform(SSHBuilder.java:60)
    3 frames
  4. Hudson
    Executor.run
    1. hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:19)
    2. hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:814)
    3. hudson.model.Build$BuildExecution.build(Build.java:199)
    4. hudson.model.Build$BuildExecution.doRun(Build.java:160)
    5. hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:593)
    6. hudson.model.Run.execute(Run.java:1568)
    7. hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46)
    8. hudson.model.ResourceController.execute(ResourceController.java:88)
    9. hudson.model.Executor.run(Executor.java:237)
    9 frames