Hi Peter,
When CAMEL-8202 has been fixed, the isUseUserKnownHostsFile might have
been added to preserve the default behaviour across the camel 2.x line.
But then, the default value should have been false and you would not have
been impacted.
At the end of the day, setting this option to
Using Camel 2.23.2, I have provided a known_hosts file on classpath and refer
to it in the route:
.to("sftp://user@sftpserver/out?knownHostsUri=known_hosts=privkey.pem=***;);
When running this, usage of knownHostsUri is confirmed, but after that it
switches back to using my local user