A previous issue,
CAMEL-5242, "Add support for pki based auth in camel-jsch" defined the default location of the SSH known_hosts file to be...
But this causes excessive logging with the misleading message:
It is misleading because the addition is not permament. It repeats with every SFTP connection. It is logged as a WARN which creates unnecesary review and filtering when analyzing the log files.
Although it is possible to configure the SFTP endpoint to specify the location of the common known_hosts file location, this must be added to every SFTP endpoint deployed to a Camel engine. For example, in a Spring XML/DSL the additional option is:
FIX: Change the default to be the ".ssh/known_hosts" file in the user's home path. In ScpOperations.java, the declaration becomes...