<?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 Re: [resolved] tFTPConnection configuration as FTP or SFTP - possible? in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/resolved-tFTPConnection-configuration-as-FTP-or-SFTP-possible/m-p/2289200#M62604</link>
    <description>Genius! This helped us out greatly in getting our SFTP configured - we need this because we wanted dynamic connections but some use Password Authentication and others use Public Key and that couldn't be paramaterized. Here's the code we used in our tJava component: 
&lt;BR /&gt;if(context.use_Private_key.equals("")){ 
&lt;BR /&gt;&amp;nbsp; &amp;nbsp; com.jcraft.jsch.ChannelSftp c_tFTPConnection_2 = (com.jcraft.jsch.ChannelSftp)globalMap.get("conn_tFTPConnection_2"); 
&lt;BR /&gt;&amp;nbsp; &amp;nbsp; globalMap.put("conn_tFTPConnection_1", c_tFTPConnection_2); 
&lt;BR /&gt;}</description>
    <pubDate>Tue, 26 Jan 2016 03:41:12 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2016-01-26T03:41:12Z</dc:date>
    <item>
      <title>[resolved] tFTPConnection configuration as FTP or SFTP - possible?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-tFTPConnection-configuration-as-FTP-or-SFTP-possible/m-p/2289197#M62601</link>
      <description>Hi all, 
&lt;BR /&gt;I have a job with a tFTPConnection component which uses values for which server to connect to as dynamic content read in from a parameter file. However, I now find that some connections I are port 21 and just normal FTP, others are port 22 and SFTP. 
&lt;BR /&gt;How can I configure either the tFTPConnection component to change the SFTP Support and Authentication Method as they are not text boxes to put something like a "context.SFTPSupport"? Alternatively, if I have multiple tFTPConnection components, one for each connection style ( FTP, SFTP wth password, SFTP with public key) how can I get the other FTP components, get, put list, rename, etc. to dynamically switch between the 3 connections? 
&lt;BR /&gt;Thanks 
&lt;BR /&gt;David</description>
      <pubDate>Thu, 13 Aug 2015 11:01:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-tFTPConnection-configuration-as-FTP-or-SFTP-possible/m-p/2289197#M62601</guid>
      <dc:creator>David_Beaty</dc:creator>
      <dc:date>2015-08-13T11:01:40Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] tFTPConnection configuration as FTP or SFTP - possible?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-tFTPConnection-configuration-as-FTP-or-SFTP-possible/m-p/2289198#M62602</link>
      <description>&lt;P&gt;Hi David,&lt;BR /&gt;I think you can probably use &lt;A href="https://community.qlik.com/s/feed/0D53p00007vCjRACA0" target="_blank" rel="noopener"&gt;this&lt;/A&gt;solution for doing the same thing with DB Connections. Instead of using the following code....&lt;/P&gt; 
&lt;PRE&gt;if(!context.UseSID){&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;java.sql.Connection conn_tOracleConnection_2 = (java.sql.Connection)globalMap.get("conn_tOracleConnection_2");&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;globalMap.put("conn_tOracleConnection_1",conn_tOracleConnection_2);&lt;BR /&gt;}&lt;/PRE&gt; 
&lt;P&gt;&lt;BR /&gt;....it would be something along the lines of this...&lt;/P&gt; 
&lt;PRE&gt;if(!context.UseSID){&lt;BR /&gt; &amp;nbsp; com.enterprisedt.net.ftp.FTPClient ftp_tFTPConnection_2 = (java.sql.Connection)globalMap.get("conn_tFTPConnection_2");&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;globalMap.put("conn_tFTPConnection_1",ftp_tFTPConnection_2);&lt;BR /&gt;}&lt;/PRE&gt; 
&lt;P&gt;&lt;BR /&gt;I'd be interested to know if this works. Looking at the code it should, but I haven't been able to test it as I don't have access to the required ftp locations.&lt;/P&gt;</description>
      <pubDate>Thu, 13 Aug 2015 12:25:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-tFTPConnection-configuration-as-FTP-or-SFTP-possible/m-p/2289198#M62602</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-08-13T12:25:01Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] tFTPConnection configuration as FTP or SFTP - possible?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-tFTPConnection-configuration-as-FTP-or-SFTP-possible/m-p/2289199#M62603</link>
      <description>Thanks for the ideas Richard, in the end I created my own tFTPConnection component that had the tickbox for &lt;I&gt;sFTP support&lt;/I&gt; as a piece of text that I could that assigned a context or global variable.&lt;BR /&gt;I couldn't create my own custom named version, as all of the other tFTPxxxxxx components only connect to a tFTPConnection component only - so it had to be called tFTPConnection.&lt;BR /&gt;It worked, but it wasn't pretty. Once I got that working, the client secured all environments to be sFTP so had to revert it all anyway.</description>
      <pubDate>Wed, 06 Jan 2016 08:25:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-tFTPConnection-configuration-as-FTP-or-SFTP-possible/m-p/2289199#M62603</guid>
      <dc:creator>David_Beaty</dc:creator>
      <dc:date>2016-01-06T08:25:37Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] tFTPConnection configuration as FTP or SFTP - possible?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-tFTPConnection-configuration-as-FTP-or-SFTP-possible/m-p/2289200#M62604</link>
      <description>Genius! This helped us out greatly in getting our SFTP configured - we need this because we wanted dynamic connections but some use Password Authentication and others use Public Key and that couldn't be paramaterized. Here's the code we used in our tJava component: 
&lt;BR /&gt;if(context.use_Private_key.equals("")){ 
&lt;BR /&gt;&amp;nbsp; &amp;nbsp; com.jcraft.jsch.ChannelSftp c_tFTPConnection_2 = (com.jcraft.jsch.ChannelSftp)globalMap.get("conn_tFTPConnection_2"); 
&lt;BR /&gt;&amp;nbsp; &amp;nbsp; globalMap.put("conn_tFTPConnection_1", c_tFTPConnection_2); 
&lt;BR /&gt;}</description>
      <pubDate>Tue, 26 Jan 2016 03:41:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-tFTPConnection-configuration-as-FTP-or-SFTP-possible/m-p/2289200#M62604</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-01-26T03:41:12Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] tFTPConnection configuration as FTP or SFTP - possible?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-tFTPConnection-configuration-as-FTP-or-SFTP-possible/m-p/2289201#M62605</link>
      <description>Glad it helped Andrew &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;</description>
      <pubDate>Tue, 26 Jan 2016 10:02:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-tFTPConnection-configuration-as-FTP-or-SFTP-possible/m-p/2289201#M62605</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-01-26T10:02:18Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] tFTPConnection configuration as FTP or SFTP - possible?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-tFTPConnection-configuration-as-FTP-or-SFTP-possible/m-p/2289202#M62606</link>
      <description>&lt;P&gt;This is great!  It dynamically changes the "use existing connection" value for all of the ftp components in the job from one fFTPConnection to another.  &lt;/P&gt;</description>
      <pubDate>Fri, 03 Dec 2021 22:28:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-tFTPConnection-configuration-as-FTP-or-SFTP-possible/m-p/2289202#M62606</guid>
      <dc:creator>billimmer</dc:creator>
      <dc:date>2021-12-03T22:28:14Z</dc:date>
    </item>
  </channel>
</rss>

