Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-1269

SCP plugin should support public key authentication

    XMLWordPrintable

Details

    • Improvement
    • Status: In Progress (View Workflow)
    • Major
    • Resolution: Unresolved
    • scp-plugin
    • None
    • Platform: Other, OS: Linux

    Description

      At the configuration of the SCP-Plugin (at Hudson System configuration)the
      message "Can't connect to server" is shown - but all given parameters are correct.
      The connection via shell SCP is working fine.

      If the build is done ignoring the message, the following exception is thown:
      FATAL: null
      java.lang.NullPointerException
      at
      be.certipost.hudson.plugin.SCPRepositoryPublisher.perform(SCPRepositoryPublisher.java:85)
      at
      hudson.tasks.BuildStepCompatibilityLayer.perform(BuildStepCompatibilityLayer.java:33)
      at
      hudson.model.AbstractBuild$AbstractRunner.performAllBuildStep(AbstractBuild.java:273)
      at
      hudson.model.AbstractBuild$AbstractRunner.performAllBuildStep(AbstractBuild.java:261)
      at hudson.model.Build$RunnerImpl.post2(Build.java:136)
      at hudson.model.AbstractBuild$AbstractRunner.post(AbstractBuild.java:246)
      at hudson.model.Run.run(Run.java:677)
      at hudson.model.Build.run(Build.java:101)
      at hudson.model.ResourceController.execute(ResourceController.java:70)
      at hudson.model.Executor.run(Executor.java:65)

      SCP-Plugin version: scp — ver.1.3
      Running on jboss-4.2.2.GA
      OS: Ubuntu
      JRE 1.6.0-b105

      Attachments

        Activity

          Fixed in the scp plugin 1.4.

          This is most likely a configuration mistake. You probably didn't configure any
          SCP site, or you set the wrong name in the job configuration.

          The NPE occurs as the code is not expecting this failure.

          kohsuke Kohsuke Kawaguchi added a comment - Fixed in the scp plugin 1.4. This is most likely a configuration mistake. You probably didn't configure any SCP site, or you set the wrong name in the job configuration. The NPE occurs as the code is not expecting this failure.
          twiedenmann twiedenmann added a comment -

          Sorry, shouldn't sound like a newbie bug report - i tried all configuration
          options, still cant connect to host.

          BUT NOW i found the reason:
          This is a problem of the JCraft SCP implementation, the remote sshd has to allow
          plain text password tunneling - now it works.

          See the following threads:
          http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&f=67&t=000975
          http://www.lugod.org/mailinglists/archives/vox-tech/2005-07/msg00012.html

          Maybe you add a note to the help files about this issue

          Thanks for your patience,
          greetz Timo

          twiedenmann twiedenmann added a comment - Sorry, shouldn't sound like a newbie bug report - i tried all configuration options, still cant connect to host. BUT NOW i found the reason: This is a problem of the JCraft SCP implementation, the remote sshd has to allow plain text password tunneling - now it works. See the following threads: http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&f=67&t=000975 http://www.lugod.org/mailinglists/archives/vox-tech/2005-07/msg00012.html Maybe you add a note to the help files about this issue Thanks for your patience, greetz Timo

          OK, in that case the real RFE is to support public key authentication for the
          SCP plugin, right?

          Updating this issue accordingly.

          kohsuke Kohsuke Kawaguchi added a comment - OK, in that case the real RFE is to support public key authentication for the SCP plugin, right? Updating this issue accordingly.
          slriemann slriemann added a comment -

          correcting

          slriemann slriemann added a comment - correcting
          slriemann slriemann added a comment -

          added an additional option for private keyfile on the global config page

          slriemann slriemann added a comment - added an additional option for private keyfile on the global config page

          Code changed in hudson
          User: : slriemann
          Path:
          trunk/hudson/plugins/scp/pom.xml
          trunk/hudson/plugins/scp/src/main/java/be/certipost/hudson/plugin/SCPRepositoryPublisher.java
          trunk/hudson/plugins/scp/src/main/java/be/certipost/hudson/plugin/SCPSite.java
          trunk/hudson/plugins/scp/src/main/java/be/certipost/hudson/plugin/SCPUserInfo.java
          trunk/hudson/plugins/scp/src/main/resources/be/certipost/hudson/plugin/SCPRepositoryPublisher/global.jelly
          trunk/hudson/plugins/scp/src/main/webapp/help-keyfile.html
          trunk/hudson/plugins/scp/src/main/webapp/help-password.html
          http://fisheye4.cenqua.com/changelog/hudson/?cs=13025
          Log:
          JENKINS-1269
          authentication with keyfile

          scm_issue_link SCM/JIRA link daemon added a comment - Code changed in hudson User: : slriemann Path: trunk/hudson/plugins/scp/pom.xml trunk/hudson/plugins/scp/src/main/java/be/certipost/hudson/plugin/SCPRepositoryPublisher.java trunk/hudson/plugins/scp/src/main/java/be/certipost/hudson/plugin/SCPSite.java trunk/hudson/plugins/scp/src/main/java/be/certipost/hudson/plugin/SCPUserInfo.java trunk/hudson/plugins/scp/src/main/resources/be/certipost/hudson/plugin/SCPRepositoryPublisher/global.jelly trunk/hudson/plugins/scp/src/main/webapp/help-keyfile.html trunk/hudson/plugins/scp/src/main/webapp/help-password.html http://fisheye4.cenqua.com/changelog/hudson/?cs=13025 Log: JENKINS-1269 authentication with keyfile

          People

            slriemann slriemann
            twiedenmann twiedenmann
            Votes:
            1 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: