Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Join us in NYC Sept 4th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Unable to connect to sftp , Connection timed out error

I am new to talend , I need to connect to sftp using password, privatekey, keyphrase

0683p000009MA4F.png

 

With the above configuration , I get the connection timed out error (Below).

 

Exception in component tFTPConnection_1 (LocalToSFTP)

com.jcraft.jsch.JSchException: java.net.ConnectException: Connection timed out: connect

at com.jcraft.jsch.Util.createSocket(Util.java:349)

at com.jcraft.jsch.Session.connect(Session.java:215)

at com.jcraft.jsch.Session.connect(Session.java:183)

at sfattachment.localtosftp_0_1.LocalToSFTP.tFTPConnection_1Process(LocalToSFTP.java:459)

at sfattachment.localtosftp_0_1.LocalToSFTP.runJobInTOS(LocalToSFTP.java:1249)

at sfattachment.localtosftp_0_1.LocalToSFTP.main(LocalToSFTP.java:1098)

Caused by: java.net.ConnectException: Connection timed out: connect

at java.net.DualStackPlainSocketImpl.connect0(Native Method)

at java.net.DualStackPlainSocketImpl.socketConnect(Unknown Source)

at java.net.AbstractPlainSocketImpl.doConnect(Unknown Source)

at java.net.AbstractPlainSocketImpl.connectToAddress(Unknown Source)

at java.net.AbstractPlainSocketImpl.connect(Unknown Source)

at java.net.PlainSocketImpl.connect(Unknown Source)

at java.net.SocksSocketImpl.connect(Unknown Source)

at java.net.Socket.connect(Unknown Source)

at java.net.Socket.connect(Unknown Source)

at java.net.Socket.<init>(Unknown Source)

at java.net.Socket.<init>(Unknown Source)

at com.jcraft.jsch.Util.createSocket(Util.java:343)

... 5 more

[statistics] disconnected

 

Could any one guide me on what could be the problem here , I am able to connect to sftp server with the same credentials through Winscp but talend throws me above error.

Labels (2)
4 Replies
manodwhb
Champion II
Champion II

@haritha , are you able to connect to the FTP outside of Talend? 

 

check the below link may be help.

 

https://community.talend.com/t5/Design-and-Development/resolved-tFTPPut-Error/td-p/82895

 

Anonymous
Not applicable
Author

Thanks for reply,

As mentioned in the link , Changed the connection from passive to active , Still i get the connection issue.

We have talend in cloud machine , not locally. 

I am able to connect via WinSCP to SFTP server from my local machine. Do you think i need the check the same i.e connect to sftp server from the cloud machine .?

Br,

Haritha

manodwhb
Champion II
Champion II

@haritha ,can you check are providing right port number ,since from your screenshot it is showing 2222.

 

 

Anonymous
Not applicable
Author

@manohar,
Yes It is correct port number .(2222).Any other suggestions.