Skip to Content
author's profile photo Former Member
Former Member

SFTP Exception caught by adapter framework: com.jcraft.jsch.JSchException: java.net.ConnectException: A remote host refused an attempted connect operation

Dear Experts,

We are using PI to third-party application integration with SFTP receiver channel and getting the below error with XPI inspector test.

send failed: java.net.ConnectException: A remote host refused an attempted connect operation.

Message could not be forwarded to the JCA adapter. Reason: com.jcraft.jsch.JSchException: java.net.ConnectException: A remote host refused an attempted connect operation.

Note : Target system has already white-listed the PI server IP.

Kindly suggest and provide your inputs on above.

Regards

RK N

Add a comment
10|10000 characters needed characters exceeded

Related questions

3 Answers

  • Best Answer
    Posted on Dec 08, 2014 at 09:47 AM

    Hi,

    1. Check if firewall is open

    2. Try to use IP instead of Hostname in CC

    3. Check if you able to ping / connect to the SFTP server using some other 3rd party tool (filezilla/putty)

    4. Check if the folder permissions for your SFTP server are properly set for ur user

    Regards,

    Azhar

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Dec 08, 2014 at 09:21 AM

    Just as a sanity check, try to connect to the SFTP server directly using telnet or putty with the same user and password.

    Regards,

    Sunil Chandra

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Dec 08, 2014 at 03:20 PM

    Hello,

    I would recommend you have the latest JSCH libraries as per the note 2058686 Upgrade of jSch library.

    Also follow the steps in the blog below: B2B Adapters - Updating to JCE Unlimited Strength Jurisdiction Policy

    Most likely, this error will not occur when you have completed these steps.

    Regards
    Mark

    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.