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

Enable support for 'keyboard-interactive' authentication method

    XMLWordPrintable

Details

    • Bug
    • Status: Open (View Workflow)
    • Major
    • Resolution: Unresolved
    • scp-plugin
    • None

    Description

      Now it's impossible to connect to SSH host if 'password' authentication method disabled and 'keyboard-interactive' enabled. Connection fails with message like:

      Recording fingerprints
      Sending e-mails to: <me>
      SCP Connecting to <hostname>
      ERROR: Failed to upload files
      com.jcraft.jsch.JSchException: Auth fail
      at com.jcraft.jsch.Session.connect(Session.java:473)
      at com.jcraft.jsch.Session.connect(Session.java:145)
      at be.certipost.hudson.plugin.SCPSite.createSession(SCPSite.java:149)
      at be.certipost.hudson.plugin.SCPRepositoryPublisher.perform(SCPRepositoryPublisher.java:106)

      Attachments

        Issue Links

          Activity

            If Jsch can't reach a destination host it fails with java.net.ConnectException like this:

            [SCP] Connecting to 192.168.2.2
            ERROR: Failed to upload files
            com.jcraft.jsch.JSchException: java.net.ConnectException: Connection timed out
                ...
            Caused by: java.net.ConnectException: Connection timed out
                ...
                at com.jcraft.jsch.Util.createSocket(Util.java:335)
                ... 13 more
            Finished: UNSTABLE
            

            'Auth fail' message means that destination host was reached but authentication phase failed. You could check it connecting with ssh client with '-v', eg. ssh -v hostname and search for

            debug1: Authentications that can continue: publickey,keyboard-interactive
            
            mn Mykola Nikishov added a comment - If Jsch can't reach a destination host it fails with java.net.ConnectException like this: [SCP] Connecting to 192.168.2.2 ERROR: Failed to upload files com.jcraft.jsch.JSchException: java.net.ConnectException: Connection timed out ... Caused by: java.net.ConnectException: Connection timed out ... at com.jcraft.jsch.Util.createSocket(Util.java:335) ... 13 more Finished: UNSTABLE 'Auth fail' message means that destination host was reached but authentication phase failed. You could check it connecting with ssh client with '-v', eg. ssh -v hostname and search for debug1: Authentications that can continue : publickey,keyboard-interactive

            Feel free to review my implementation @ http://github.com/manandbytes/hudson-plugins/tree/scp-keyboard-interactive. I would prefer this series to be squashed before committing.

            mn Mykola Nikishov added a comment - Feel free to review my implementation @ http://github.com/manandbytes/hudson-plugins/tree/scp-keyboard-interactive . I would prefer this series to be squashed before committing.

            Squashed diff of original implementation, also available @ https://github.com/manandbytes/hudson-plugins/tree/hudson-7941

            mn Mykola Nikishov added a comment - Squashed diff of original implementation, also available @ https://github.com/manandbytes/hudson-plugins/tree/hudson-7941
            evernat evernat added a comment -

            This seems to be a low hanging fruit.

            evernat evernat added a comment - This seems to be a low hanging fruit.

            Yeh, someone with commit rights have just accept pull request with fix

            mn Mykola Nikishov added a comment - Yeh, someone with commit rights have just accept pull request with fix

            People

              ramazanyich2 ramazanyich2
              mn Mykola Nikishov
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated: