SAP Knowledge Base Article - Preview

3289383 - Connection between CPI and 3rd party SFTP server is failing with 'key size is not supported' error


You are using Cloud Integration to send messages to a target SFTP server. The connectivity test and runtime are both failing with the following error:

org.apache.camel.component.file.GenericFileOperationFailedException: Cannot connect to sap-<SFTP URL>, cause: com.jcraft.jsch.JSchException: Session.connect: DH key size must be multiple of 64, and can only range from 512 to 8192 (inclusive). The specific key size 2047 is not supported



  • SAP Cloud Integration
  • SAP Integration Suite


Cloud Integration, CPI, Integration Suite, SFTP, key, key size, 2047, range, InvalidAlgorithmParameterException , KBA , LOD-HCI-PI-CON-SOAP , SOAP Adapter , Problem

About this page

This is a preview of a SAP Knowledge Base Article. Click more to access the full version on SAP for Me (Login required).

Search for additional results

Visit SAP Support Portal's SAP Notes and KBA Search.