<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic tSCP - using a private/publick key to connect to a Linux server in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/tSCP-using-a-private-publick-key-to-connect-to-a-Linux-server/m-p/2323398#M93246</link>
    <description>This relates to another discussion, but the solution doesnt work for me . 
&lt;BR /&gt; 
&lt;A href="https://community.qlik.com/s/feed/0D53p00007vCt0RCAS" target="_blank" rel="nofollow noopener noreferrer"&gt;https://community.talend.com/t5/Design-and-Development/Password-less-SCP/td-p/61103&lt;/A&gt; 
&lt;BR /&gt;I am using Talend 5.3 : 
&lt;BR /&gt;I have a job for which I need to scp a file from a Windows to a Backbox (Ubuntu) server. 
&lt;BR /&gt;Have automatic ( using Public/Private keys ) set up, which runs without problems from the Windows CMD prompt : 
&lt;BR /&gt;C:\&amp;gt;psftp -l ajonlinux -2 -i id_dsa_arnoldjeffrey_vm.ppk 10.1.67.21 
&lt;BR /&gt;Using username "ajonlinux". 
&lt;BR /&gt;Remote working directory is /home/ajonlinux 
&lt;BR /&gt;psftp&amp;gt; 
&lt;BR /&gt;On the Lunix server, I have the id_dsa_arnoldjeffrey_vm.pub key imported into the ajonlinux:/home/ajonlinux/authorized_keys 
&lt;BR /&gt;I will add a screen capture to this issue in a later step 
&lt;BR /&gt;When i run the procedure from Talend, I get the following error message : 
&lt;BR /&gt;Starting job Upload_ftptcpip_abcfile1_toFNB at 15:15 10/06/2013. 
&lt;BR /&gt; connecting to socket on port 3776 
&lt;BR /&gt; connected 
&lt;BR /&gt;Exception in component tSCPConnection_1 
&lt;BR /&gt;java.io.IOException: Publickey authentication failed. 
&lt;BR /&gt; at ch.ethz.ssh2.auth.AuthenticationManager.authenticatePublicKey(AuthenticationManager.java:263) 
&lt;BR /&gt; at ch.ethz.ssh2.Connection.authenticateWithPublicKey(Connection.java:430) 
&lt;BR /&gt; at ch.ethz.ssh2.Connection.authenticateWithPublicKey(Connection.java:481) 
&lt;BR /&gt; at danone.upload_ftptcpip_abcfile1_tofnb_0_1.Upload_ftptcpip_abcfile1_toFNB.tSCPConnection_1Process(Upload_ftptcpip_abcfile1_toFNB.java:503) 
&lt;BR /&gt; at danone.upload_ftptcpip_abcfile1_tofnb_0_1.Upload_ftptcpip_abcfile1_toFNB.tFileExist_1Process(Upload_ftptcpip_abcfile1_toFNB.java:439) 
&lt;BR /&gt; at danone.upload_ftptcpip_abcfile1_tofnb_0_1.Upload_ftptcpip_abcfile1_toFNB.runJobInTOS(Upload_ftptcpip_abcfile1_toFNB.java:3044) 
&lt;BR /&gt; at danone.upload_ftptcpip_abcfile1_tofnb_0_1.Upload_ftptcpip_abcfile1_toFNB.main(Upload_ftptcpip_abcfile1_toFNB.java:2905) 
&lt;BR /&gt;Caused by: java.io.IOException: Invalid PEM structure, '-----BEGIN...' missing 
&lt;BR /&gt; at ch.ethz.ssh2.crypto.PEMDecoder.parsePEM(PEMDecoder.java:138) 
&lt;BR /&gt; at ch.ethz.ssh2.crypto.PEMDecoder.decode(PEMDecoder.java:313) 
&lt;BR /&gt; at ch.ethz.ssh2.auth.AuthenticationManager.authenticatePublicKey(AuthenticationManager.java:172) 
&lt;BR /&gt; ... 6 more 
&lt;BR /&gt; disconnected 
&lt;BR /&gt;Job Upload_ftptcpip_abcfile1_toFNB ended at 15:15 10/06/2013.</description>
    <pubDate>Mon, 10 Jun 2013 14:10:14 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2013-06-10T14:10:14Z</dc:date>
    <item>
      <title>tSCP - using a private/publick key to connect to a Linux server</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tSCP-using-a-private-publick-key-to-connect-to-a-Linux-server/m-p/2323398#M93246</link>
      <description>This relates to another discussion, but the solution doesnt work for me . 
&lt;BR /&gt; 
&lt;A href="https://community.qlik.com/s/feed/0D53p00007vCt0RCAS" target="_blank" rel="nofollow noopener noreferrer"&gt;https://community.talend.com/t5/Design-and-Development/Password-less-SCP/td-p/61103&lt;/A&gt; 
&lt;BR /&gt;I am using Talend 5.3 : 
&lt;BR /&gt;I have a job for which I need to scp a file from a Windows to a Backbox (Ubuntu) server. 
&lt;BR /&gt;Have automatic ( using Public/Private keys ) set up, which runs without problems from the Windows CMD prompt : 
&lt;BR /&gt;C:\&amp;gt;psftp -l ajonlinux -2 -i id_dsa_arnoldjeffrey_vm.ppk 10.1.67.21 
&lt;BR /&gt;Using username "ajonlinux". 
&lt;BR /&gt;Remote working directory is /home/ajonlinux 
&lt;BR /&gt;psftp&amp;gt; 
&lt;BR /&gt;On the Lunix server, I have the id_dsa_arnoldjeffrey_vm.pub key imported into the ajonlinux:/home/ajonlinux/authorized_keys 
&lt;BR /&gt;I will add a screen capture to this issue in a later step 
&lt;BR /&gt;When i run the procedure from Talend, I get the following error message : 
&lt;BR /&gt;Starting job Upload_ftptcpip_abcfile1_toFNB at 15:15 10/06/2013. 
&lt;BR /&gt; connecting to socket on port 3776 
&lt;BR /&gt; connected 
&lt;BR /&gt;Exception in component tSCPConnection_1 
&lt;BR /&gt;java.io.IOException: Publickey authentication failed. 
&lt;BR /&gt; at ch.ethz.ssh2.auth.AuthenticationManager.authenticatePublicKey(AuthenticationManager.java:263) 
&lt;BR /&gt; at ch.ethz.ssh2.Connection.authenticateWithPublicKey(Connection.java:430) 
&lt;BR /&gt; at ch.ethz.ssh2.Connection.authenticateWithPublicKey(Connection.java:481) 
&lt;BR /&gt; at danone.upload_ftptcpip_abcfile1_tofnb_0_1.Upload_ftptcpip_abcfile1_toFNB.tSCPConnection_1Process(Upload_ftptcpip_abcfile1_toFNB.java:503) 
&lt;BR /&gt; at danone.upload_ftptcpip_abcfile1_tofnb_0_1.Upload_ftptcpip_abcfile1_toFNB.tFileExist_1Process(Upload_ftptcpip_abcfile1_toFNB.java:439) 
&lt;BR /&gt; at danone.upload_ftptcpip_abcfile1_tofnb_0_1.Upload_ftptcpip_abcfile1_toFNB.runJobInTOS(Upload_ftptcpip_abcfile1_toFNB.java:3044) 
&lt;BR /&gt; at danone.upload_ftptcpip_abcfile1_tofnb_0_1.Upload_ftptcpip_abcfile1_toFNB.main(Upload_ftptcpip_abcfile1_toFNB.java:2905) 
&lt;BR /&gt;Caused by: java.io.IOException: Invalid PEM structure, '-----BEGIN...' missing 
&lt;BR /&gt; at ch.ethz.ssh2.crypto.PEMDecoder.parsePEM(PEMDecoder.java:138) 
&lt;BR /&gt; at ch.ethz.ssh2.crypto.PEMDecoder.decode(PEMDecoder.java:313) 
&lt;BR /&gt; at ch.ethz.ssh2.auth.AuthenticationManager.authenticatePublicKey(AuthenticationManager.java:172) 
&lt;BR /&gt; ... 6 more 
&lt;BR /&gt; disconnected 
&lt;BR /&gt;Job Upload_ftptcpip_abcfile1_toFNB ended at 15:15 10/06/2013.</description>
      <pubDate>Mon, 10 Jun 2013 14:10:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tSCP-using-a-private-publick-key-to-connect-to-a-Linux-server/m-p/2323398#M93246</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-06-10T14:10:14Z</dc:date>
    </item>
    <item>
      <title>Re: tSCP - using a private/publick key to connect to a Linux server</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tSCP-using-a-private-publick-key-to-connect-to-a-Linux-server/m-p/2323399#M93247</link>
      <description>Problem solved : &lt;BR /&gt;you need to use Puttygen : load the "Putty" generated .ppk file into Puttygen and select "Conversion" from the menu and save the file in OPENSSH format.</description>
      <pubDate>Mon, 10 Jun 2013 16:25:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tSCP-using-a-private-publick-key-to-connect-to-a-Linux-server/m-p/2323399#M93247</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-06-10T16:25:19Z</dc:date>
    </item>
    <item>
      <title>Re: tSCP - using a private/publick key to connect to a Linux server</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tSCP-using-a-private-publick-key-to-connect-to-a-Linux-server/m-p/2323400#M93248</link>
      <description>&lt;P&gt;It seems that the tSCPConnection component support just the old openssl format whereas the default option with ssh-keygen is openssh. If you are facing a similar&amp;nbsp; issue check your private key which should start with -----BEGIN RSA PRIVATE KEY----- (in case you are using rsa). If your private key file starts with -----BEGIN OPENSSH PRIVATE KEY----- you will most probably not be able to authenticate. You can generate a PEM format like described on the following site:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://logmx.com/docs/public-key.html" target="_blank" rel="nofollow noopener noreferrer"&gt;https://logmx.com/docs/public-key.html&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Talend version: 7.3, macos&lt;/P&gt;</description>
      <pubDate>Wed, 22 Apr 2020 16:55:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tSCP-using-a-private-publick-key-to-connect-to-a-Linux-server/m-p/2323400#M93248</guid>
      <dc:creator>mertez</dc:creator>
      <dc:date>2020-04-22T16:55:34Z</dc:date>
    </item>
  </channel>
</rss>

