-
Bug
-
Resolution: Unresolved
-
Major
-
None
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.
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
On target machine /var/log/messages shows each time
Apr 3 08:26:13 mymachine sshd[12009]: Received disconnect from (ip): 3: com.jcraft.jsch.JSchException: Auth cancel