Issue with tFTPConnection component

Four Stars

Issue with tFTPConnection component

Hello,
I want to establish SFTP connection to a external server using tFTPConnection component in talend job, details below:
port: 12922
Authentication method: public key (using password and open SSH private key both)
I am able to connect to that server with WinScp tool using same details but when connecting via talend job I am getting error as below. This means there cannot be any issue with firewall port or IP addresses of source and destination servers. Is it so that tFTPConnection component only supports port 22 generally used for SFTP?

Exception in component tFTPConnection_1
com.jcraft.jsch.JSchException: Auth cancel
  at com.jcraft.jsch.Session.connect(Session.java:460)
  at com.jcraft.jsch.Session.connect(Session.java:154)
  at finance_coda.ftp_test1_0_1.FTP_test1.tFTPConnection_1Process(FTP_test1.java:1176)
  at finance_coda.ftp_test1_0_1.FTP_test1.runJobInTOS(FTP_test1.java:1678)
  at finance_coda.ftp_test1_0_1.FTP_test1.main(FTP_test1.java:1501)

Any urgent help in this regard would be really helpful. PFB screenshot of tFTPConnection component properties.
Four Stars

Re: Issue with tFTPConnection component

Hi
Can u please share your job design?
I am sharing my connection details with you

Port 22
Regards
SB
Moderator

Re: Issue with tFTPConnection component

Hi,
Did you use the same credentials for WINSCP tool? Are you using Public Key authentication types in tFTPConnection?
Best regards
Sabrina
--
Don't forget to give kudos when a reply is helpful and click Accept the solution when you think you're good with it.
Four Stars

Re: Issue with tFTPConnection component

Hi Sabrina,
Yes I used the same credentials in Winscp tool.
Yes I am using public key authentication type in tFTPConnection. We are working on Talend 5.6 version.
@Swapnil, I am using port 12922 for SFTP and Authentication method is Key based.
I have attached screenshot for tFTPConnection component.