I fixed this myself. My SFTP server required to be in known_hosts file on my
client machine.


Andriy Kro wrote:
> 
> Hi,
> 
> I use such a configuration to poll our sftp-server:
> 
> <route id="sftp_poller">
> <from
> uri="sftp://[email protected]/var/test/in?password=test&amp;binary=true&amp;consumer.delay=1000"/>
> <to uri="file://c:/2"/>
> </route>
> 
> When I try to use it I got such error:
> 
> [sftp://[email protected]/var/test/in]: reject HostKey: 192.168.1.10
> com.jcraft.jsch.JSchException: reject HostKey: 192.168.1.10
>         at com.jcraft.jsch.Session.checkHost(Session.java:700)
>         at com.jcraft.jsch.Session.connect(Session.java:307)
>         at com.jcraft.jsch.Session.connect(Session.java:150)
>         at
> org.apache.camel.component.file.remote.SftpConsumer.connectIfNecessary(SftpConsumer.java:73)
>         at
> org.apache.camel.component.file.remote.SftpConsumer.poll(SftpConsumer.java:96)
>         at
> org.apache.camel.impl.ScheduledPollConsumer.run(ScheduledPollConsumer.java:66)
> 
> How can I fix this?
> 

-- 
View this message in context: 
http://www.nabble.com/SFTP.-HostKey-verification-error-tp21682724s22882p21725200.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Reply via email to