Skip to Content

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.

Add a comment
10|10000 characters needed characters exceeded

Related questions

4 Answers

  • Posted on Jul 20, 2020 at 04:27 PM

    Hi Venkat Kumar,

    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

    Add a comment
    10|10000 characters needed characters exceeded

    • 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.

  • Posted on Jul 24, 2020 at 02:35 PM

    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

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Jul 20, 2020 at 04:32 PM

    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

    Add a comment
    10|10000 characters needed characters exceeded

    • 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.

  • Posted on Jul 21, 2020 at 11:28 AM

    Hi Venkat Kumar

    Did you added the known host entry.

    thanks and regrads,

    Praveen t

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.