[resolved] tFTPComponent Invalid Private Key Error

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.

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.
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 GARNER 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

What’s New for Talend Summer ’19

Watch the recorded webinar!

Watch Now

Best Practices for Using Context Variables with Talend – Part 4

Pick up some tips and tricks with Context Variables

Blog

How Media Organizations Achieved Success with Data Integration

Learn how media organizations have achieved success with Data Integration

Read

Definitive Guide to Data Quality

Create systems and workflow to manage clean data ingestion and data transformation.

Download