Hi, I am trying to connect to a SFTP site using the "Public key" authentication method. I receive the following error.. Exception in component tFTPConnection_1 com.jcraft.jsch.JSchException: Auth cancel at com.jcraft.jsch.Session.connect(Session.java:511) at com.jcraft.jsch.Session.connect(Session.java:183) at employsure.sftp_0_1.sftp.tFTPConnection_1Process(sftp.java:408) at employsure.sftp_0_1.sftp.runJobInTOS(sftp.java:814) at employsure.sftp_0_1.sftp.main(sftp.java:666) I can successfully connect to this site using the WINSCP tool using the same credentials. I notice using the WINSCP tool, if I don't set the password property it prompts me for it.
Looking at the generated code for both authentication types (Public Key & Password), it seems Talend does not set the password when using Public Key authentication.
Can you confirm if this is by design? And, if there is way to use both?
I managed to apply a hack/patch to make this work.. I edited the "plugins\org.talend.designer.components.localprovider_126.96.36.19961026_1219\components\tFTPConnection\tFTPConnection_begin.javajet" file and forced the template to generate both the "public key" code option and the "password" option, not either or. And it worked. Can we please wire this option into future versions?
Hi, I am getting the same error as davidoxley got but the difference is I am using Talend 5.6 and port used is 12922. Still I can try the change that he did in the tFTPConnection_begin.javajet file provided I come to know what is the exact change that I need to do.
Sabrina, Can you also tell me that tFTPConnection component only supports port 22 ?