Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
I am new to talend , I need to connect to sftp using password, privatekey, keyphrase
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.
@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
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
@haritha ,can you check are providing right port number ,since from your screenshot it is showing 2222.