cancel
Showing results for 
Search instead for 
Did you mean: 

SFTP connect timeout

wu_feng2
Explorer
0 Kudos

Hello Expert,

I got in trouble with SFTP adapter.

The scenario is SOAP->PI->SFTP server.

I setup an SFTP server in my PC, test the SFTP adapter installed correctly or not.

The result is connect failed:

********************************************************************************************

Message could not be forwarded to the JCA adapter. Reason: com.jcraft.jsch.JSchException: Session.connect: java.net.SocketTimeoutException: Read timed out (local port 17340 to address 10.10.159.74, remote port 8000 to address 10.187.8.30)

MP: exception caught with cause javax.resource.ResourceException: com.jcraft.jsch.JSchException: Session.connect: java.net.SocketTimeoutException: Read timed out (local port 17340 to address 10.10.159.74, remote port 8000 to address 10.187.8.30)

Exception caught by adapter framework: com.jcraft.jsch.JSchException: Session.connect: java.net.SocketTimeoutException: Read timed out (local port 17340 to address 10.10.159.74 , remote port 8000 to address 10.187.8.30)

Transmitting the message to endpoint <local> using connection AFW failed, due to: com.sap.engine.interfaces.messaging.api.exception.MessagingException: javax.resource.ResourceException: com.jcraft.jsch.JSchException: Session.connect: java.net.SocketTimeoutException: Read timed out (local port 17340 to address 10.10.159.74 , remote port 8000 to address 10.187.8.30)

********************************************************************************************

Then,I try to use filezilla tool connect to SFTP server with the same IP,port,and user account. It is ok.

So, I think the firewall may block the connection.

I setup an FTP service in my PC with the same port 8000. The result is PI connect to my FTP Server successful.

So, Why the SFTP connection failed?

JacoVanebo
Explorer
0 Kudos

Hi Wu,

I think you more or less answered this question yourself.

"So, I think the firewall may block the connection."

Check with your network team/server team that TCP on port 8000 is allowed from you PI to your SFTP server.

Best regards,
Jacob

Accepted Solutions (1)

Accepted Solutions (1)

wu_feng2
Explorer
0 Kudos

It's the network traffic controlling, cause that problem.

Thanks everyone's reply.

Answers (2)

Answers (2)

former_member306381
Participant
0 Kudos

Hi Wu Feng,

is it solved?

increase the timeout period then it works as i had a similar issue in my project , sftp server has a problem while attempting the connection in the specified timespan.

Regards,

Bhaskar

former_member190536
Participant
0 Kudos

hi Wu,

SFTP is working from your PC is ok, but check with PO server that FTP address is blocked, check SFTP is reachable from PO server with Network Firewall allowed.

Regards,

Khaja.