[resolved] tFTPConnection -- Invalid Private Key

Six Stars

[resolved] tFTPConnection -- Invalid Private Key

Hi,
Our team is using the Talend Big Data Platform 6.2 on Windows 7. When I use the tFTPComponent I get an error that says "tFTPConnection_1 invalid privatekey: [B@80503" when it tries to connect to the remote server. It shows the sFTP options because I clicked the SFTP Support check box.
We do have a id_rsa key in a local drive that it is using.
My question is: is there some kind of special key format that the Talend tFTPConnection? Does it need to be in any special encoding?
The funny thing is that this key works fine when we use sFTP directly to connect, just not when we try to connect using Talend.
More info:
Exception in component tFTPConnection_1
com.jcraft.jsch.JSchException: invalid privatekey: [B@80503
at com.jcraft.jsch.KeyPair.load(KeyPair.java:664)
at com.jcraft.jsch.KeyPair.load(KeyPair.java:561)
at com.jcraft.jsch.IdentityFile.newInstance(IdentityFile.java:40)
at com.jcraft.jsch.JSch.addIdentity(JSch.java:407)
at com.jcraft.jsch.JSch.addIdentity(JSch.java:388)
Thanks!
Croix

Accepted Solutions
Six Stars

Re: [resolved] tFTPConnection -- Invalid Private Key

It turns out that we were able to get the sftp to work after generating the key with this command 
ssh-keygen -t rsa
Previously we used a -o switch but that seemed to cause the "invalid private key" in Talend.

All Replies
Moderator

Re: [resolved] tFTPConnection -- Invalid Private Key

Hi,
We have replied to your another topic:https://www.talendforge.org/forum/viewtopic.php?id=54692. Could you please stick to one topic so that we can pay individule attention to your issue?
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.
Six Stars

Re: [resolved] tFTPConnection -- Invalid Private Key

It turns out that we were able to get the sftp to work after generating the key with this command 
ssh-keygen -t rsa
Previously we used a -o switch but that seemed to cause the "invalid private key" in Talend.