<?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: Connect through ssh tunnel to mysql in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Connect-through-ssh-tunnel-to-mysql/m-p/2250362#M34639</link>
    <description>&lt;BLOCKQUOTE&gt;
 &lt;TABLE border="1"&gt;
  &lt;TBODY&gt;
   &lt;TR&gt;
    &lt;TD&gt;Hello -&lt;BR /&gt;Been trying to do the same, however, we have differences as follows:&lt;BR /&gt;1. Using Talend 6.2.1 on Windows 10&lt;BR /&gt;2. Linux Server (RHEL 7 MySQL Package) separate from DB server&lt;BR /&gt;Goal is to setup DB connection from local PC (using Talend)&amp;nbsp;to MySQL via SSH connection: Local PC -&amp;gt; SSH Connection (e.g. mdmuser/&amp;lt;password&amp;gt;) -&amp;gt; MySQL DB (e.g. talend_mdm_dev/&amp;lt;password&amp;gt;).&lt;BR /&gt;It is necessary to connect to Linux server first before accessing DB server.&lt;/TD&gt;
   &lt;/TR&gt;
  &lt;/TBODY&gt;
 &lt;/TABLE&gt;
&lt;/BLOCKQUOTE&gt;
&lt;BR /&gt;Please describe the components you added in Talend Jobs.
&lt;BR /&gt;I want to connect via tssh, but i dont know about the command or anything more.</description>
    <pubDate>Fri, 07 Apr 2017 03:55:11 GMT</pubDate>
    <dc:creator>cacak</dc:creator>
    <dc:date>2017-04-07T03:55:11Z</dc:date>
    <item>
      <title>Connect through ssh tunnel to mysql</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Connect-through-ssh-tunnel-to-mysql/m-p/2250350#M34627</link>
      <description>I am trying to connect to a remote server using ssh tunnel connection where I have to use port forwarding from a local server to the remote server. I then need to be able to connect to a mysql database on the remote server.
&lt;BR /&gt;Any ideas how I would set this up in Talend?
&lt;BR /&gt;Any help would be appreciated.</description>
      <pubDate>Sat, 16 Nov 2024 12:11:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Connect-through-ssh-tunnel-to-mysql/m-p/2250350#M34627</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-11-16T12:11:43Z</dc:date>
    </item>
    <item>
      <title>Re: Connect through ssh tunnel to mysql</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Connect-through-ssh-tunnel-to-mysql/m-p/2250351#M34628</link>
      <description>hi 
&lt;BR /&gt;Never use "localhost" for hostname (but 127.0.0.1) if ssh host and mysql server on the same machine 
&lt;BR /&gt; 
&lt;A href="https://community.qlik.com/s/feed/0D53p00007vCk3bCAC" rel="nofollow noopener noreferrer"&gt;https://community.talend.com/t5/Design-and-Development/mysql-and-SSH-port-tunneling-forwarding/td-p/71693&lt;/A&gt; 
&lt;BR /&gt;Hope it helps 
&lt;BR /&gt;regards 
&lt;BR /&gt;laurent</description>
      <pubDate>Sun, 16 Sep 2012 08:08:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Connect-through-ssh-tunnel-to-mysql/m-p/2250351#M34628</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-09-16T08:08:52Z</dc:date>
    </item>
    <item>
      <title>Re: Connect through ssh tunnel to mysql</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Connect-through-ssh-tunnel-to-mysql/m-p/2250352#M34629</link>
      <description>I don't use localhost; I use the IP address. 
&lt;BR /&gt;What I am trying to do is set up a talend job that does port forwarding to a remote server where the mysql database resides. I have attached screen shots from a putty connections which works fine. I need to replicate this somehow in talend.</description>
      <pubDate>Tue, 18 Sep 2012 14:09:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Connect-through-ssh-tunnel-to-mysql/m-p/2250352#M34629</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-09-18T14:09:05Z</dc:date>
    </item>
    <item>
      <title>Re: Connect through ssh tunnel to mysql</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Connect-through-ssh-tunnel-to-mysql/m-p/2250353#M34630</link>
      <description>Well, I can't seem to upload the images into this post...anyone know how this is done?</description>
      <pubDate>Tue, 18 Sep 2012 14:49:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Connect-through-ssh-tunnel-to-mysql/m-p/2250353#M34630</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-09-18T14:49:06Z</dc:date>
    </item>
    <item>
      <title>Re: Connect through ssh tunnel to mysql</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Connect-through-ssh-tunnel-to-mysql/m-p/2250354#M34631</link>
      <description>Hello, 
&lt;BR /&gt;I faced the same problem and have found the following solution. 
&lt;BR /&gt;I use TOS 5.1 on Windows 7. For the SSH tunnel to my MySQL server I use plink.exe. You can download this from the 
&lt;A href="http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html" target="_blank" rel="nofollow noopener noreferrer"&gt;PuTTY Dowload Page&lt;/A&gt; 
&lt;BR /&gt;1.) I used tSystem component to start the ssh tunnel and set up a port forwarding from local port 13306 to the remote MySQL server port 3306. The command line looks like 
&lt;BR /&gt; 
&lt;PRE&gt;C:\plink.exe user@remote_host_or_ip -pw password -ssh -N -C -L 13306:127.0.0.1:3306&lt;/PRE&gt; 
&lt;BR /&gt;But there is one problem if you use this directly within tSystem component: plink establishes the tunnel but does not return and therefore the talend job does not continue. Add "cmd /c" in front does not help. So we need a little helper script, which will starting plink.exe in the background and then returns so the talend job can continue. I used VBScript for that. 
&lt;BR /&gt; 
&lt;PRE&gt; set fs=createobject("wscript.shell")&lt;BR /&gt;fs.run "C:\plink.exe user@remote_host_or_ip -pw password -ssh -N -C -L 13306:127.0.0.1:3306", 0&lt;/PRE&gt; 
&lt;BR /&gt;This script is saved as ssh_remote_mysql.vbs 
&lt;BR /&gt;On the tSystem component I used as command 
&lt;BR /&gt; 
&lt;PRE&gt;"cscript C:\\ssh_remote_mysql.vbs"&lt;/PRE&gt; 
&lt;BR /&gt;2.) Next I added a tSleep component to my job which gives plink some time (i.e. 3s) to establish the SSH tunnel. Otherwise the first tMysqlInput component runs into an error because the tSystems component starts the VBScript and continues instantly without waiting until the SSH tunnel is established. 
&lt;BR /&gt;3.) Now I'm able to run all my MySQL subjobs. On the MySQL connection settings host must set to 127.0.0.1 and port to 13306 
&lt;BR /&gt;4.) After all MySQL jobs done I added a 2nd tSystem component to delete the SSH tunnel. Therefore I simply kill plink.exe by using the follwing command 
&lt;BR /&gt; 
&lt;PRE&gt;"cmd /c taskkill /F /IM plink.exe"&lt;/PRE&gt; 
&lt;BR /&gt;So now every time I run the talend job the SSH tunnel will be established at the beginning and terminated at the end. 
&lt;BR /&gt;I posted this because I did not found a solution somewhere else which is running this way. Hope this helps.</description>
      <pubDate>Tue, 20 Nov 2012 23:41:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Connect-through-ssh-tunnel-to-mysql/m-p/2250354#M34631</guid>
      <dc:creator>jens_fricke</dc:creator>
      <dc:date>2012-11-20T23:41:47Z</dc:date>
    </item>
    <item>
      <title>Re: Connect through ssh tunnel to mysql</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Connect-through-ssh-tunnel-to-mysql/m-p/2250355#M34632</link>
      <description>Hi,&lt;BR /&gt;Easier ideas , solutions ??</description>
      <pubDate>Sun, 29 Dec 2013 20:13:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Connect-through-ssh-tunnel-to-mysql/m-p/2250355#M34632</guid>
      <dc:creator>phil974</dc:creator>
      <dc:date>2013-12-29T20:13:37Z</dc:date>
    </item>
    <item>
      <title>Re: Connect through ssh tunnel to mysql</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Connect-through-ssh-tunnel-to-mysql/m-p/2250356#M34633</link>
      <description>Hi, 
&lt;BR /&gt;The solution offered by&amp;nbsp; 
&lt;B&gt;&lt;FONT color="#5b5b5d"&gt;&lt;FONT size="2"&gt;&lt;FONT face="Verdana, Helvetica, Arial, sans-serif"&gt;jens.fricke&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/B&gt; 
&lt;FONT color="#5b5b5d"&gt;&lt;FONT size="2"&gt;&lt;FONT face="Verdana, Helvetica, Arial, sans-serif"&gt;&amp;nbsp;is the best that I could find on the Internet.&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt; 
&lt;BR /&gt; 
&lt;FONT color="#5b5b5d"&gt;&lt;FONT size="2"&gt;&lt;FONT face="Verdana, Helvetica, Arial, sans-serif"&gt;I did integrate a slighty different version without using a script file. As&amp;nbsp;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt; 
&lt;B&gt;&lt;FONT color="#5b5b5d"&gt;&lt;FONT size="2"&gt;&lt;FONT face="Verdana, Helvetica, Arial, sans-serif"&gt;jens.fricke, &lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/B&gt; 
&lt;FONT color="#5b5b5d"&gt;&lt;FONT size="2"&gt;&lt;FONT face="Verdana, Helvetica, Arial, sans-serif"&gt;I put a tSystem component at the top of the job design, unlinked to any other components, with the option "Use Array Command" activated and these commands :&amp;nbsp;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt; 
&lt;BR /&gt; 
&lt;FONT color="#5b5b5d"&gt;&lt;FONT size="2"&gt;&lt;FONT face="Verdana, Helvetica, Arial, sans-serif"&gt;"powershell"&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt; 
&lt;BR /&gt; 
&lt;FONT color="#5b5b5d"&gt;&lt;FONT size="2"&gt;&lt;FONT face="Verdana, Helvetica, Arial, sans-serif"&gt;"/c"&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt; 
&lt;BR /&gt; 
&lt;FONT color="#5b5b5d"&gt;&lt;FONT face="Verdana, Helvetica, Arial, sans-serif"&gt;&lt;FONT size="2"&gt;"plink.exe -ssh &amp;lt;machine-ip&amp;gt;:&amp;lt;ssh-port&amp;gt; -l root -pw &amp;lt;password&amp;gt; -L 3306:127.0.0.1:3306 -N"&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt; 
&lt;BR /&gt; 
&lt;BR /&gt; 
&lt;FONT color="#5b5b5d"&gt;&lt;FONT face="Verdana, Helvetica, Arial, sans-serif"&gt;&lt;FONT size="2"&gt;Go to the &lt;B&gt;Job &lt;/B&gt;tab, then open &lt;B&gt;Extra &lt;/B&gt;tab and check the option "&lt;B&gt;Multi thread execution&lt;/B&gt;". &amp;nbsp;This will enable the alone tSystem to run as well as the main flow of the job.&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt; 
&lt;BR /&gt;I add a tSleep component (with the duration of your choice, the time that your setup needs to connect to the remote server SSH) that I connect to the first component I need to run, in my case a tMysqlInput. 
&lt;BR /&gt;Finally, I add a tSystem that I connect to the last component, like&amp;nbsp; 
&lt;B&gt;&lt;FONT color="#5b5b5d"&gt;&lt;FONT size="2"&gt;&lt;FONT face="Verdana, Helvetica, Arial, sans-serif"&gt;jens.fricke &lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/B&gt; 
&lt;FONT color="#5b5b5d"&gt;&lt;FONT size="2"&gt;&lt;FONT face="Verdana, Helvetica, Arial, sans-serif"&gt;(thank you for your solution), with the command&amp;nbsp;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt; 
&lt;FONT size="2"&gt;&lt;FONT face="consolas, monaco, 'bitstream vera sans mono', 'courier new', courier, monospace"&gt;"cmd /c taskkill /F /IM plink.exe". That way, the process plink.exe is shutdown at the end of the job.&lt;/FONT&gt;&lt;/FONT&gt; 
&lt;BR /&gt; 
&lt;BR /&gt;The solution is not perfect. I would prefer an option in the tSSH component.&amp;nbsp; 
&lt;BR /&gt;I have to run the command&amp;nbsp; 
&lt;FONT color="#5b5b5d"&gt;&lt;FONT size="2"&gt;&lt;FONT face="Verdana, Helvetica, Arial, sans-serif"&gt;"plink.exe -ssh &amp;lt;machine-ip&amp;gt;:&amp;lt;ssh-port&amp;gt; -l root -pw &amp;lt;password&amp;gt; -L 3306:127.0.0.1:3306 -N" manually every time I need to use Talend functionnalities such as "Guess Schema" on the tMysqlInput component.&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt; 
&lt;BR /&gt;Hope it helps.</description>
      <pubDate>Mon, 31 Aug 2015 15:59:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Connect-through-ssh-tunnel-to-mysql/m-p/2250356#M34633</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-08-31T15:59:18Z</dc:date>
    </item>
    <item>
      <title>Re: Connect through ssh tunnel to mysql</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Connect-through-ssh-tunnel-to-mysql/m-p/2250357#M34634</link>
      <description>hi, 
&lt;BR /&gt;old post but nevermind. 
&lt;BR /&gt;a more Talend way will be to forward port &amp;amp; use setting network connection in preferences 
&lt;BR /&gt; 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MCf7.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/136664i81697181030313C3/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MCf7.png" alt="0683p000009MCf7.png" /&gt;&lt;/span&gt; 
&lt;BR /&gt;regards 
&lt;BR /&gt;laurent</description>
      <pubDate>Tue, 01 Sep 2015 11:32:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Connect-through-ssh-tunnel-to-mysql/m-p/2250357#M34634</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-09-01T11:32:22Z</dc:date>
    </item>
    <item>
      <title>Re: Connect through ssh tunnel to mysql</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Connect-through-ssh-tunnel-to-mysql/m-p/2250358#M34635</link>
      <description>I use the same solution but am having one additional issue - when I go to run the job from the job conductor i am getting the following (where when I run from TalendStudio I get no errors at all - thinking it must have something to do with the way the commandline service is running plink.) Any Ideas?: 
&lt;BR /&gt;2015-11-04 14:17:22|20151104141722_PYf9o|20151104141722_PYf9o|20151104141722_PYf9o|6924|PROD|AVRRegFromFiles|_TxxtAHvdEeWzvPDo1KDdWQ|0.1|Default||begin|| 
&lt;BR /&gt;SUCCESS: The process "plink.exe" with PID 6496 has been terminated. 
&lt;BR /&gt;Microsoft (R) Windows Script Host Version 5.8 
&lt;BR /&gt;Copyright (C) Microsoft Corporation. All rights reserved. 
&lt;BR /&gt;2015-11-04 14:17:30|20151104141722_PYf9o|20151104141722_PYf9o|20151104141722_PYf9o|PROD|AVRRegFromFiles|Default|6|Java Exception|tMysqlInput_2|com.mysql.jdbc.exceptions.jdbc4.CommunicationsException:Communications link failure 
&lt;BR /&gt;The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.|1 
&lt;BR /&gt;2015-11-04 14:17:30|20151104141722_PYf9o|20151104141722_PYf9o|20151104141722_PYf9o|6924|PROD|AVRRegFromFiles|_TxxtAHvdEeWzvPDo1KDdWQ|0.1|Default||end|failure|7785 
&lt;BR /&gt;Exception in component tMysqlInput_2 
&lt;BR /&gt;com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure 
&lt;BR /&gt;The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) 
&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57) 
&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) 
&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; at java.lang.reflect.Constructor.newInstance(Constructor.java:526) 
&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; at com.mysql.jdbc.Util.handleNewInstance(Util.java:409) 
&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1127) 
&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; at com.mysql.jdbc.MysqlIO.&amp;lt;init&amp;gt;(MysqlIO.java:356) 
&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2502) 
&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2539) 
&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2321) 
&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; at com.mysql.jdbc.ConnectionImpl.&amp;lt;init&amp;gt;(ConnectionImpl.java:832) 
&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; at com.mysql.jdbc.JDBC4Connection.&amp;lt;init&amp;gt;(JDBC4Connection.java:46) 
&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) 
&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57) 
&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) 
&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; at java.lang.reflect.Constructor.newInstance(Constructor.java:526) 
&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; at com.mysql.jdbc.Util.handleNewInstance(Util.java:409) 
&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417) 
&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344) 
&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; at java.sql.DriverManager.getConnection(DriverManager.java:571) 
&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; at java.sql.DriverManager.getConnection(DriverManager.java:215) 
&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; at prod.avrregfromfiles_0_1.AVRRegFromFiles.tMysqlInput_2Process(AVRRegFromFiles.java:1676) 
&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; at prod.avrregfromfiles_0_1.AVRRegFromFiles.tSleep_1Process(AVRRegFromFiles.java:1080) 
&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; at prod.avrregfromfiles_0_1.AVRRegFromFiles.tSystem_1Process(AVRRegFromFiles.java:934) 
&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; at prod.avrregfromfiles_0_1.AVRRegFromFiles.tSystem_2Process(AVRRegFromFiles.java:712) 
&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; at prod.avrregfromfiles_0_1.AVRRegFromFiles$10.run(AVRRegFromFiles.java:8981) 
&lt;BR /&gt;Caused by: java.net.ConnectException: Connection refused: connect 
&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; at java.net.DualStackPlainSocketImpl.connect0(Native Method) 
&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; at java.net.DualStackPlainSocketImpl.socketConnect(DualStackPlainSocketImpl.java:79) 
&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:339) 
&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:200) 
&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:182) 
&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:172) 
&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392) 
&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; at java.net.Socket.connect(Socket.java:579) 
&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; at java.net.Socket.connect(Socket.java:528) 
&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; at java.net.Socket.&amp;lt;init&amp;gt;(Socket.java:425) 
&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; at java.net.Socket.&amp;lt;init&amp;gt;(Socket.java:241) 
&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258) 
&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; at com.mysql.jdbc.MysqlIO.&amp;lt;init&amp;gt;(MysqlIO.java:306) 
&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ... 19 more</description>
      <pubDate>Thu, 05 Nov 2015 14:21:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Connect-through-ssh-tunnel-to-mysql/m-p/2250358#M34635</guid>
      <dc:creator>_AnonymousUser</dc:creator>
      <dc:date>2015-11-05T14:21:51Z</dc:date>
    </item>
    <item>
      <title>Re: Connect through ssh tunnel to mysql</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Connect-through-ssh-tunnel-to-mysql/m-p/2250359#M34636</link>
      <description>Hello, 
&lt;BR /&gt;I have the same issue and used the two solutions without result. Someone to help? 
&lt;BR /&gt;Here my error in talend: 
&lt;BR /&gt;Exception in component tMysqlInput_1 
&lt;BR /&gt;com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure 
&lt;BR /&gt;The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 
&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) 
&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source) 
&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source) 
&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; at java.lang.reflect.Constructor.newInstance(Unknown Source) 
&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; at com.mysql.jdbc.Util.handleNewInstance(Util.java:409) 
&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1127) 
&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; at com.mysql.jdbc.MysqlIO.&amp;lt;init&amp;gt;(MysqlIO.java:356) 
&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2502) 
&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2539) 
&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2321) 
&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; at com.mysql.jdbc.ConnectionImpl.&amp;lt;init&amp;gt;(ConnectionImpl.java:832) 
&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; at com.mysql.jdbc.JDBC4Connection.&amp;lt;init&amp;gt;(JDBC4Connection.java:46) 
&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) 
&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source) 
&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source) 
&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; at java.lang.reflect.Constructor.newInstance(Unknown Source) 
&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; at com.mysql.jdbc.Util.handleNewInstance(Util.java:409) 
&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417) 
&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344) 
&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; at java.sql.DriverManager.getConnection(Unknown Source) 
&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; at java.sql.DriverManager.getConnection(Unknown Source) 
&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; at vente_privee.logistic_task_join_wp_ams_cmd_0_1.logistic_task_join_wp_ams_cmd.tSleep_1Process(logistic_task_join_wp_ams_cmd.java:1089) 
&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; at vente_privee.logistic_task_join_wp_ams_cmd_0_1.logistic_task_join_wp_ams_cmd.runJobInTOS(logistic_task_join_wp_ams_cmd.java:2280) 
&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; at vente_privee.logistic_task_join_wp_ams_cmd_0_1.logistic_task_join_wp_ams_cmd.main(logistic_task_join_wp_ams_cmd.java:1992) 
&lt;BR /&gt;Caused by: java.net.ConnectException: Connection refused: connect 
&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; at java.net.DualStackPlainSocketImpl.connect0(Native Method) 
&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; at java.net.DualStackPlainSocketImpl.socketConnect(Unknown Source) 
&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; at java.net.AbstractPlainSocketImpl.doConnect(Unknown Source) 
&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; at java.net.AbstractPlainSocketImpl.connectToAddress(Unknown Source) 
&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; at java.net.AbstractPlainSocketImpl.connect(Unknown Source) 
&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; at java.net.PlainSocketImpl.connect(Unknown Source) 
&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; at java.net.SocksSocketImpl.connect(Unknown Source) 
&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; at java.net.Socket.connect(Unknown Source) 
&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; at java.net.Socket.connect(Unknown Source) 
&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; at java.net.Socket.&amp;lt;init&amp;gt;(Unknown Source) 
&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; at java.net.Socket.&amp;lt;init&amp;gt;(Unknown Source) 
&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258) 
&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; at com.mysql.jdbc.MysqlIO.&amp;lt;init&amp;gt;(MysqlIO.java:306) 
&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ... 17 more 
&lt;BR /&gt; disconnected</description>
      <pubDate>Thu, 12 May 2016 14:35:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Connect-through-ssh-tunnel-to-mysql/m-p/2250359#M34636</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-05-12T14:35:36Z</dc:date>
    </item>
    <item>
      <title>Re: Connect through ssh tunnel to mysql</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Connect-through-ssh-tunnel-to-mysql/m-p/2250360#M34637</link>
      <description>Sorry the error is made by me 
&lt;B&gt;jens.fricke&lt;/B&gt;'s solution worl fine 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MACn.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/154443iC5B8CACEF3D12C6A/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MACn.png" alt="0683p000009MACn.png" /&gt;&lt;/span&gt; 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MACn.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/154443iC5B8CACEF3D12C6A/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MACn.png" alt="0683p000009MACn.png" /&gt;&lt;/span&gt; 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MACn.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/154443iC5B8CACEF3D12C6A/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MACn.png" alt="0683p000009MACn.png" /&gt;&lt;/span&gt;</description>
      <pubDate>Thu, 12 May 2016 14:49:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Connect-through-ssh-tunnel-to-mysql/m-p/2250360#M34637</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-05-12T14:49:38Z</dc:date>
    </item>
    <item>
      <title>Re: Connect through ssh tunnel to mysql</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Connect-through-ssh-tunnel-to-mysql/m-p/2250361#M34638</link>
      <description>Hello -&lt;BR /&gt;Been trying to do the same, however, we have differences as follows:&lt;BR /&gt;1. Using Talend 6.2.1 on Windows 10&lt;BR /&gt;2. Linux Server (RHEL 7 MySQL Package) separate from DB server&lt;BR /&gt;Goal is to setup DB connection from local PC (using Talend)&amp;nbsp;to MySQL via SSH connection: Local PC -&amp;gt; SSH Connection (e.g. mdmuser/&amp;lt;password&amp;gt;) -&amp;gt; MySQL DB (e.g. talend_mdm_dev/&amp;lt;password&amp;gt;).&lt;BR /&gt;It is necessary to connect to Linux server first before accessing DB server.</description>
      <pubDate>Wed, 21 Dec 2016 09:41:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Connect-through-ssh-tunnel-to-mysql/m-p/2250361#M34638</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-12-21T09:41:56Z</dc:date>
    </item>
    <item>
      <title>Re: Connect through ssh tunnel to mysql</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Connect-through-ssh-tunnel-to-mysql/m-p/2250362#M34639</link>
      <description>&lt;BLOCKQUOTE&gt;
 &lt;TABLE border="1"&gt;
  &lt;TBODY&gt;
   &lt;TR&gt;
    &lt;TD&gt;Hello -&lt;BR /&gt;Been trying to do the same, however, we have differences as follows:&lt;BR /&gt;1. Using Talend 6.2.1 on Windows 10&lt;BR /&gt;2. Linux Server (RHEL 7 MySQL Package) separate from DB server&lt;BR /&gt;Goal is to setup DB connection from local PC (using Talend)&amp;nbsp;to MySQL via SSH connection: Local PC -&amp;gt; SSH Connection (e.g. mdmuser/&amp;lt;password&amp;gt;) -&amp;gt; MySQL DB (e.g. talend_mdm_dev/&amp;lt;password&amp;gt;).&lt;BR /&gt;It is necessary to connect to Linux server first before accessing DB server.&lt;/TD&gt;
   &lt;/TR&gt;
  &lt;/TBODY&gt;
 &lt;/TABLE&gt;
&lt;/BLOCKQUOTE&gt;
&lt;BR /&gt;Please describe the components you added in Talend Jobs.
&lt;BR /&gt;I want to connect via tssh, but i dont know about the command or anything more.</description>
      <pubDate>Fri, 07 Apr 2017 03:55:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Connect-through-ssh-tunnel-to-mysql/m-p/2250362#M34639</guid>
      <dc:creator>cacak</dc:creator>
      <dc:date>2017-04-07T03:55:11Z</dc:date>
    </item>
    <item>
      <title>Re: Connect through ssh tunnel to mysql</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Connect-through-ssh-tunnel-to-mysql/m-p/2250363#M34640</link>
      <description>&lt;BLOCKQUOTE&gt;
 &lt;TABLE border="1"&gt;
  &lt;TBODY&gt;
   &lt;TR&gt;
    &lt;TD&gt;hi&lt;BR /&gt;Never use "localhost" for hostname (but 127.0.0.1) if ssh host and mysql server on the same machine&lt;BR /&gt;&lt;BR /&gt;Hope it helps&lt;BR /&gt;regards&lt;BR /&gt;laurent&lt;/TD&gt;
   &lt;/TR&gt;
  &lt;/TBODY&gt;
 &lt;/TABLE&gt;
&lt;/BLOCKQUOTE&gt;
&lt;BR /&gt;How is your components structure?
&lt;BR /&gt;I have a structure : tSSH-----(main)---tFlowToIterate---(Iterate)---tMysqlInput-----(main)----tFileOutputExcel
&lt;BR /&gt;And the result is nothing, just connected for a long time.
&lt;BR /&gt;tSSH: Host (My servers IP Public), Port (22), User (myuser), auth method (public key),
&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Commands : "mysql -u root -p myDBName"
&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "myrootPass;"
&lt;BR /&gt;tMysqlInput: Component Setting like localhost conection, with host 127.0.0.1
&lt;BR /&gt;
&lt;BR /&gt;When i ran only the tSSH component with command "ls;", its running weel.
&lt;BR /&gt;Hope somebody can help me to fix it.</description>
      <pubDate>Fri, 07 Apr 2017 08:27:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Connect-through-ssh-tunnel-to-mysql/m-p/2250363#M34640</guid>
      <dc:creator>cacak</dc:creator>
      <dc:date>2017-04-07T08:27:17Z</dc:date>
    </item>
    <item>
      <title>Re: Connect through ssh tunnel to mysql</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Connect-through-ssh-tunnel-to-mysql/m-p/2250364#M34641</link>
      <description>And i can execute those command (mysql -u root ip DBName) and some select query via PuTTY</description>
      <pubDate>Fri, 07 Apr 2017 08:46:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Connect-through-ssh-tunnel-to-mysql/m-p/2250364#M34641</guid>
      <dc:creator>cacak</dc:creator>
      <dc:date>2017-04-07T08:46:11Z</dc:date>
    </item>
  </channel>
</rss>

