Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Qlik and ServiceNow Partner to Bring Trusted Enterprise Context into AI-Powered Workflows. Learn More!
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

SFTP with private key

Hi,
I have a private key pait with my server generated by PuTTYGen which work well with WinSCP.
The key was generated using SSH-2 RSA and it's called P_Key.ppk
I am trying to set that up with TOS 3.2, however it does not seem to like the key: the error is the following:
Exception in component tFTPPut_1
com.jcraft.jsch.JSchException: invalid privatekey: E:/Download/P_key.ppk
at com.jcraft.jsch.IdentityFile.<init>(IdentityFile.java:210)
at com.jcraft.jsch.IdentityFile.newInstance(IdentityFile.java:135)
at com.jcraft.jsch.IdentityFile.newInstance(IdentityFile.java:130)
at com.jcraft.jsch.JSch.addIdentity(JSch.java:200)
at com.jcraft.jsch.JSch.addIdentity(JSch.java:194)
at tos_ivigate.test_sftp_0_1.TEST_SFTP.tFTPPut_1Process(TEST_SFTP.java:208)
at tos_ivigate.test_sftp_0_1.TEST_SFTP.runJobInTOS(TEST_SFTP.java:471)
at tos_ivigate.test_sftp_0_1.TEST_SFTP.main(TEST_SFTP.java:383)
Thanks for your help
Regards
Yann
Labels (3)
13 Replies
Anonymous
Not applicable
Author

Vaibhav,
Yes the username being used has all the permissions. In fact those credentials are working fine from other ETL tool.
More info.. we have installed the ssh keys for the other ETL tool in our dev servers... so do I need to install the same for Talend as well.. if yes, how can I obtain those keys?
Anonymous
Not applicable
Author

You can also use batch files using tsystem component to perform operations...
Check similar discussion at http://www.talendforge.org/forum/viewtopic.php?id=26394

Vaibhav
Anonymous
Not applicable
Author

Got password-less ssh/sftp enabled on the server, wanted to quick login using the given private key w/o having to add it to id_rsa.

Here are the commands to do that.

SSH :

ssh -i /path/to/private/key user@hostname

SFTP:

sftp -oIdentityFile=/path/to/private/key user@hostname

Cheers!

for more info goto puttygen.com

salini_ravi18
Contributor
Contributor

This saved my day!! Thanks a lot!