Quantcast

ftp endpoint and proxy

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

ftp endpoint and proxy

borgel
Hi,

I need to send a file to a sftp server. I am behind a proxy and needs to configure a sftp proxy. How do I configure the proxy?

Regards
Børge.
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: ftp endpoint and proxy

davsclaus
Administrator
Hi

I think Camel uses JSCH for SFTP.
http://www.jcraft.com/jsch/

Let me know how it goes, I would gladly improve the Camel wiki documentation if you get it working.

/Claus

borgel wrote
Hi,

I need to send a file to a sftp server. I am behind a proxy and needs to configure a sftp proxy. How do I configure the proxy?

Regards
Børge.
Claus Ibsen
-----------------
FuseSource
Email: cibsen@fusesource.com
Web: http://fusesource.com
Twitter: davsclaus
Blog: http://davsclaus.blogspot.com/
Author of Camel in Action: http://www.manning.com/ibsen/
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: ftp endpoint and proxy

borgel
Hi, thanks for your answer.
I will try this:
JSch jsch=new JSch();
Session session=jsch.getSession(userName, sftpUri);
session.setProxy(new ProxySOCKS5(proxyHost, proxyPort));
SftpEndpoint sftpEndpoint = context.getEndpoint(sftpUri, SftpEndpoint.class);
sftpEndpoint.createChannelSftp(session)

davsclaus wrote
Hi

I think Camel uses JSCH for SFTP.
http://www.jcraft.com/jsch/

Let me know how it goes, I would gladly improve the Camel wiki documentation if you get it working.

/Claus

borgel wrote
Hi,

I need to send a file to a sftp server. I am behind a proxy and needs to configure a sftp proxy. How do I configure the proxy?

Regards
Børge.
Loading...