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

Enable support for 'keyboard-interactive' authentication method

    Details

    • Type: Bug
    • Status: Open (View Workflow)
    • Priority: Major
    • Resolution: Unresolved
    • Component/s: scp-plugin
    • Labels:
      None
    • Similar Issues:

      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

            Hide
            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
            
            Show
            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
            Hide
            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.

            Show
            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.
            Hide
            mn Mykola Nikishov added a comment -

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

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

            This seems to be a low hanging fruit.

            Show
            evernat evernat added a comment - This seems to be a low hanging fruit.
            Hide
            mn Mykola Nikishov added a comment -

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

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

              People

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

                Dates

                • Created:
                  Updated: