You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@camel.apache.org by borgel <bo...@gmail.com> on 2008/03/31 16:27:40 UTC
ftp endpoint and proxy
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.
--
View this message in context: http://www.nabble.com/ftp-endpoint-and-proxy-tp16396275s22882p16396275.html
Sent from the Camel - Users mailing list archive at Nabble.com.
Re: ftp endpoint and proxy
Posted by borgel <bo...@gmail.com>.
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.
>>
>
>
--
View this message in context: http://www.nabble.com/ftp-endpoint-and-proxy-tp16396275s22882p16416902.html
Sent from the Camel - Users mailing list archive at Nabble.com.
Re: ftp endpoint and proxy
Posted by davsclaus <ci...@yahoo.dk>.
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.
>
--
View this message in context: http://www.nabble.com/ftp-endpoint-and-proxy-tp16396275s22882p16411879.html
Sent from the Camel - Users mailing list archive at Nabble.com.