camel-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Eugene Kiselev (Updated) (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (CAMEL-4506) The SFTP component: the keyboard-interactive auth method support
Date Fri, 30 Sep 2011 15:19:46 GMT

     [ https://issues.apache.org/jira/browse/CAMEL-4506?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Eugene Kiselev updated CAMEL-4506:
----------------------------------

    Attachment: SftpExtendedEndpoint.java
    
> The SFTP component: the keyboard-interactive auth method support 
> -----------------------------------------------------------------
>
>                 Key: CAMEL-4506
>                 URL: https://issues.apache.org/jira/browse/CAMEL-4506
>             Project: Camel
>          Issue Type: Improvement
>          Components: camel-ftp
>    Affects Versions: 2.8.1
>            Reporter: Eugene Kiselev
>            Priority: Trivial
>         Attachments: SftpExtendedEndpoint.java
>
>
> As it was discussed in this topic http://camel.465427.n5.nabble.com/The-SFTP-component-the-keyboard-interactive-auth-method-support-td4853523.html
> The SFTP component may be slightly improved to support the keyboard-interactive auth
method and the compression,
> Preamble:
> It appeared that our sftp share we get files from doesn't support the ssh password auth
method and we're not allowed to put the public key to there. So the only ssh auth method we
can use is the keyboard-interactive. Unfortunately the SFTP camel component doesn't support
this.
> However this can be easily fixed simply by providing the Jsch session with both the 
com.jcraft.jsch.UserInfo and com.jcraft.jsch.UIKeyboardInteractive interfaces. The UIKeyboardInteractive
has the only one promptKeyboardInteractive method which returns String[] containing the password
entered by user interactively. In our case I simply return a password.
> The implementation example is attached.
> Also it's sometime required to set the ssh compression to be able to process longsize
files. The compression fix is also implemented in the attached file. Compression requires
the zlib jar to be in the pom.
> This was tested with the 0.1.44-1 version of the jsch and the 1.0.7 version of the jzlib.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message