camel-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Joakim Ek (JIRA)" <>
Subject [jira] [Commented] (CAMEL-6266) Support for SFTP through a proxy
Date Thu, 19 Sep 2013 08:57:55 GMT


Joakim Ek commented on CAMEL-6266:

The documentation in the wiki looks good.

But I wonder if one should give an example of using a proxy that requires username and password.
As the com.jcraft.jsch.Proxy class doesn't take these as constructor arguments one needs to
set those using a MethodInvokingFactoryBean. Not that complicated but maybe not totally obvious

I'm using this:

    <!-- set the username and password for the proxy -->
    <bean id="setProxyUsernameAndPassword"
        <property name="targetObject"><ref local="proxy"/></property>
        <property name="targetMethod"><value>setUserPasswd</value></property>
        <property name="arguments">
> Support for SFTP through a proxy
> --------------------------------
>                 Key: CAMEL-6266
>                 URL:
>             Project: Camel
>          Issue Type: Improvement
>          Components: camel-ftp
>            Reporter: Joakim Ek
>            Assignee: Christian Müller
>            Priority: Minor
>             Fix For: 2.11.1, 2.12.0
>         Attachments: sftp_proxy.patch
> FTP and FTPS have the 'ftpClient' option that allows the use of a custom
instance. I.e. to access a FTP server through a HTTP
> SFTP currently lacks proxy support in Camel. The used JSch library however has support
for proxies.
> This patch adds a SFTP only option 'proxy' which allows passing in an instance of com.jcraft.jsch.Proxy
to JSch. This enables the use of SFTP through HTTP, SOCKS4 and SOCKS5 proxies.
> Included are two new basic unit tests using [Little Proxy|]
to verify consuming and producing through a HTTP proxy.

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see:

View raw message