You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by je...@apache.org on 2022/08/12 02:33:45 UTC

[camel] branch camel-3.18.x updated: camel-sftp: Document deprecated algos.

This is an automated email from the ASF dual-hosted git repository.

jeremyross pushed a commit to branch camel-3.18.x
in repository https://gitbox.apache.org/repos/asf/camel.git


The following commit(s) were added to refs/heads/camel-3.18.x by this push:
     new 8bcd30b3596 camel-sftp: Document deprecated algos.
8bcd30b3596 is described below

commit 8bcd30b3596d51c2cb4693ebe8dd6d5729f546dc
Author: Jeremy Ross <je...@gmail.com>
AuthorDate: Thu Aug 11 21:33:17 2022 -0500

    camel-sftp: Document deprecated algos.
---
 .../camel-ftp/src/main/docs/sftp-component.adoc      | 20 ++++++++++++++++++++
 1 file changed, 20 insertions(+)

diff --git a/components/camel-ftp/src/main/docs/sftp-component.adoc b/components/camel-ftp/src/main/docs/sftp-component.adoc
index a5953a88a96..f0f2c2fdcc7 100644
--- a/components/camel-ftp/src/main/docs/sftp-component.adoc
+++ b/components/camel-ftp/src/main/docs/sftp-component.adoc
@@ -45,6 +45,26 @@ include::partial$component-endpoint-options.adoc[]
 include::partial$component-endpoint-headers.adoc[]
 // component headers: END
 
+== Restoring Deprecated Key Types and Algorithms
+
+As of Camel 3.17.0, key types and algorithms that use SHA1 have been deprecated. These can be restored, if necessary, by setting JSch configuration directly. E.g.:
+
+[source,java]
+----
+JSch.setConfig("server_host_key",  JSch.getConfig("server_host_key") + ",ssh-rsa");
+JSch.setConfig("PubkeyAcceptedAlgorithms", JSch.getConfig("PubkeyAcceptedAlgorithms") + ",ssh-rsa");
+JSch.setConfig("kex", JSch.getConfig("kex") + ",diffie-hellman-group1-sha1,diffie-hellman-group14-sha1");
+----
+
+Note that the key types and algorithms your server supports may differ than the above example. You can use the following
+command to inspect your server's configuration:
+
+----
+ssh -vvv <server_address>
+----
+
+As of Camel 3.18.1, these values can also be set on SFTP endpoints by setting the corresponding URI parameters.
+
 == More Information
 
 For more information you can look at xref:ftp-component.adoc[FTP component]