cancel
Showing results for 
Search instead for 
Did you mean: 

SFTP connectvity issue in SAP CPI

Hi Experts,

We are trying connect to external SFTP server from SAP CPI. external partner whitelisted CPI IP address range.We have selected proxy type "internet". But still, we are getting below error.

org.apache.camel.component.file.GenericFileOperationFailedException: Cannot connect to sftp://XXXXX@XX.XXXX.com:22, cause: com.jcraft.jsch.JSchException: timeout: socket is not established.

Please let me know if any suggestions to resolve the issue.

rajasanapathi
Explorer
0 Kudos

Hi Venkat, did you get solution for this problem, if yes, may I know what was done?

Accepted Solutions (0)

Answers (4)

Answers (4)

Hi Venkat,

From CPI perspective adding Host key entries are sufficient. Please contact your network team and Admin from SFTP end and if its accessible from outside network. Since is CPI is over internet if there are any specific restriction on SFTP server side that is maintained.

In addition you could check if its password based is only there or Certificate based authentication is allowed.

thanks and regards,

Praveen T

Hi gv.anjankumar,

Have you added the know host entry on SAP-CPI tenant.

https://launchpad.support.sap.com/#/notes/0002700759

Please find the SAP note for more details.

thanks and regards,

Praveen T

0 Kudos

Thanks Praveen for your response.

I tested the connectivity using "Test connectivity". Getting the same error.Also, we are using basic(user) authentication to connect.

Note: Got the same error when tried to connect from SAP PO. But after enabling the firewall at our end, its started working.

0 Kudos

Hi gv.anjankumar

Did you added the known host entry.

thanks and regrads,

Praveen t

0 Kudos

Hi Praveen, Yes i added SFTP host key to the know_hosts file, still getting the same error. Please suggest if any other settings that needs to be checked.

Sriprasadsbhat
Active Contributor
0 Kudos

Hello Venkat,

Please try to test connectivity from monitoring tail to make sure you are able to connect to SFTP server.

Alo increase the time out to see if target SFTP is taking more time to respond.

Regards,

Sriprasad Shivaram Bhat

0 Kudos

Thanks Sriprasad for your response.

I tested the connectivity using "Test connectivity", getting the same error. Also tried by increasing timeout, this time its giving below error:

org.apache.camel.component.file.GenericFileOperationFailedException: Cannot connect to sftp://XXXX@XX.XXXX.com:22, cause: com.jcraft.jsch.JSchException: ProxySOCKS5: server returns 2

Note: Got the same "Socket is not established" error when tried to connect from SAP PO. But after enabling the firewall at our end, its started working in PO.

Are we missing any additional settings that needs to be done in CPI.