cancel
Showing results for 
Search instead for 
Did you mean: 

Getting Error in SFTP Connection "com.jcraft.jsch.JSchException: java.net.ConnectException: A remote host did not respond within the timeout period. "

former_member183249
Active Participant
0 Kudos


Hi

I am using SFTP adapter to send an edi file.

I have set all the mandatory parameters in the communication channel.

(i.e. Server Fringerprint, Port,Server, Username,pwd and using no proxy in proxy field).

But i am not able to connect the SFTP Server and communication channel is throwing the following error:

"com.jcraft.jsch.JSchException: java.net.ConnectException: A remote host did not respond within the timeout period."

Can anybody tell me what could be the possible reason for above error.

Regards,

Rahul

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

Hi Rahul,

I'm facing same issue

http://scn.sap.com/thread/3821528

Please help. Many Thanks..!!

former_member183249
Active Participant
0 Kudos

Hi Rajesh,

Kindly check with network team if firewall is open on both the way. Its Firewall issue thats why you are not able to enter into server and getting timeout error.

Ask your firewall/network team to open the port for ip address if its not open.

Former Member
0 Kudos

You got the exact solution?

You mean port needs to be opened and rule should be enabled at both sides i.e Bidirectional.??

But my scenario is asynchronous FTP to FTPS.

Former Member
0 Kudos

Hi ,

Check the connectivity b/w PI and sftp server as below.

ftp yourPIserverftphostname

user/pwd

PI ftp>sftp yoursftpserverIP/hostname

pwd:give sftp server pwd

Regards

Venkat

former_member192343
Active Contributor
0 Kudos

Hi

try to ping server, is it avilable? Is it available from PI host? Is ftp port opened?

What is the file size?

If it is big and ping is success then try to set in advanced mode of CC following parameters:

Name : ftp.timeout

Value : timeoutsecs

former_member183249
Active Participant
0 Kudos

Hi Mikhail,

How we can ping the server ?

We are using the small file of approx 2KB to 10 KB.

Regards,

Rahul

former_member192343
Active Contributor
0 Kudos

execute ping command in terminal window

ping server_host

or

ping server_IP

former_member192343
Active Contributor
0 Kudos

first of all check server address in communication chanel, is it correct?

markangelo_dihiansan
Active Contributor
0 Kudos

Hi Rahul,

Follow this blog by Michal

http://scn.sap.com/community/pi-and-soa-middleware/blog/2012/01/18/michals-pi-tips-3-ways-to-check-a...

Create an external command and then use telnet to check the connection with the remote server.

Regards,

Mark