Uploaded image for project: 'Apache NiFi'
  1. Apache NiFi
  2. NIFI-8711

Support keyboard-interactive authentication for SFTP

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 1.10.0, 1.13.2
    • 1.14.0
    • Extensions

    Description

      Changing the supporting library from JSch to SSHJ resulted in removing support for keyboard-interactive authentication when configuring a password in SFTP components. 

      Some SSH servers disable password authentication but support keyboard-interactive authentication.  SSHJ provides support for keyboard-interactive authentication using a password, and SFTP components should attempt both password authentication and keyboard-interactive authentication when a password is configured.

      Without support for keyboard-interactive authentication, SFTP processors report the following error even when configured with valid username and password credentials:

      UserAuthException: Exhausted available authentication methods

      SSHJ reports the following debug log with valid credentials when the server has disabled password authentication:

      net.schmizz.sshj.userauth.UserAuthImpl `password` auth failed

      Attachments

        Issue Links

          Activity

            People

              exceptionfactory David Handermann
              exceptionfactory David Handermann
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 10m
                  10m