Talend Connect
Virtual Summit
JOIN US!
And visit the Customer
& Community Lounge.
May 27-28, wherever you are.

[resolved] tFTPComponent Invalid Private Key Error

Highlighted
Six Stars

[resolved] tFTPComponent Invalid Private Key Error

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 speical 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] tFTPComponent Invalid Private Key Error

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.

View solution in original post


All Replies
Highlighted
Moderator

Re: [resolved] tFTPComponent Invalid Private Key Error

Hi,
Did you use putty keys? If so, need to be converted to open ssh keys.
Could you please take a look at this related forum:https://www.talendforge.org/forum/viewtopic.php?id=8662 to see if it works?
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] tFTPComponent Invalid Private Key Error

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.

View solution in original post

Highlighted
Moderator

Re: [resolved] tFTPComponent Invalid Private Key Error

Hi,
Thanks for your feedback and sharing your solution with us.
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.

2019 GARTNER MAGIC QUADRANT FOR DATA INTEGRATION TOOL

Talend named a Leader.

Get your copy

OPEN STUDIO FOR DATA INTEGRATION

Kickstart your first data integration and ETL projects.

Download now

Best Practices for Using Context Variables with Talend – Part 2

Part 2 of a series on Context Variables

Blog

Best Practices for Using Context Variables with Talend – Part 1

Learn how to do cool things with Context Variables

Blog

Migrate Data from one Database to another with one Job using the Dynamic Schema

Find out how to migrate from one database to another using the Dynamic schema

Blog