• Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Major Major
    • ssh-plugin
    • 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

          [JENKINS-17440] SSH Plugin throws auth cancel

          Onno van der Straaten created issue -
          R. Tyler Croy made changes -
          Workflow Original: JNJira [ 148615 ] New: JNJira + In-Review [ 177143 ]
          Daniel Carrasco made changes -
          Comment [ I've got this problem on latest version (2.70) after upgrade the SSH plugin from ver 2.4 to 2.5. It was fully working before that.

          Downgraded to 2.4 and all is working fine again. ]

            Unassigned Unassigned
            ostraaten Onno van der Straaten
            Votes:
            4 Vote for this issue
            Watchers:
            12 Start watching this issue

              Created:
              Updated: