cancel
Showing results for 
Search instead for 
Did you mean: 

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

Former Member
0 Kudos

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

Accepted Solutions (1)

Accepted Solutions (1)

azharshaikh
Active Contributor
0 Kudos

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

Former Member
0 Kudos

Dear All,

Thank you for reply, We resolved the issue by open FTP port from firewall.

Regards

RK

Answers (2)

Answers (2)

marksmyth
Product and Topic Expert
Product and Topic Expert
0 Kudos

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

sunilchandra007
Active Contributor
0 Kudos

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