<?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>question Re: listSFTP  Failed to obtain connection to remote host due to com.jcraft.jsch.JSchException: timeout: socket is not established in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/listSFTP-Failed-to-obtain-connection-to-remote-host-due-to/m-p/211207#M60024</link>
    <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/16412/simonjespersen.html" nodeid="16412"&gt;@Simon Jespersen&lt;/A&gt;
&lt;/P&gt;&lt;P&gt;If you cannot get this to work outside of NiFi, it is not going to work inside of NiFi either.&lt;/P&gt;&lt;P&gt;But looking over your statement above, I see a couple things...&lt;/P&gt;&lt;P&gt;1. You are trying to use a "ppk" file.  This is a Putty Private Key which is not going to be supported by SFTP. You should be using a private key in pem format.&lt;/P&gt;&lt;P&gt;2. SSH is very particular about permissions set on private keys.  SSH will reject the key if the permissions are to open.  Once you have you pem key make a copy of it for your NiFi application and make sure that copy is owned by the user running NiFi.  The permissions also must be 600 on the private key.&lt;/P&gt;&lt;PRE&gt;nifi.root 770 (-rwxrwx---) will not be accepted by SSH

nifi.root 600 (-rw-------) will be accepted.&lt;/PRE&gt;&lt;P&gt;You can't grant groups access to your private key.&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Matt&lt;/P&gt;</description>
    <pubDate>Wed, 26 Apr 2017 04:22:16 GMT</pubDate>
    <dc:creator>MattWho</dc:creator>
    <dc:date>2017-04-26T04:22:16Z</dc:date>
    <item>
      <title>listSFTP  Failed to obtain connection to remote host due to com.jcraft.jsch.JSchException: timeout: socket is not established</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/listSFTP-Failed-to-obtain-connection-to-remote-host-due-to/m-p/211206#M60023</link>
      <description>&lt;P&gt;Her is my error log &lt;/P&gt;&lt;P&gt;2017-04-25
08:06:39,645 ERROR [Timer-Driven Process Thread-4]
o.a.nifi.processors.standard.ListSFTP ListSFTP[id=fa15a338-015a-1000-ffff-ffffbc360c33]
Failed to perform listing on remote host due to java.io.IOException: Failed to
obtain connection to remote host due to com.jcraft.jsch.JSchException: timeout:
socket is not established&lt;/P&gt;&lt;P&gt;2017-04-25
08:06:39,645 ERROR [Timer-Driven Process Thread-4]
o.a.nifi.processors.standard.ListSFTP&lt;/P&gt;&lt;P&gt;java.io.IOException:
Failed to obtain connection to remote host due to
com.jcraft.jsch.JSchException: timeout: socket is not established&lt;/P&gt;&lt;P&gt; 
at
org.apache.nifi.processors.standard.util.SFTPTransfer.getChannel(SFTPTransfer.java:447)
~[nifi-standard-processors-1.1.0.2.1.1.0-2.jar:1.1.0.2.1.1.0-2]&lt;/P&gt;&lt;P&gt; 
at
org.apache.nifi.processors.standard.util.SFTPTransfer.getListing(SFTPTransfer.java:184)
~[nifi-standard-processors-1.1.0.2.1.1.0-2.jar:1.1.0.2.1.1.0-2]&lt;/P&gt;&lt;P&gt; 
at
org.apache.nifi.processors.standard.util.SFTPTransfer.getListing(SFTPTransfer.java:148)
~[nifi-standard-processors-1.1.0.2.1.1.0-2.jar:1.1.0.2.1.1.0-2]&lt;/P&gt;&lt;P&gt; 
at org.apache.nifi.processors.standard.ListFileTransfer.performListing(ListFileTransfer.java:103)
~[nifi-standard-processors-1.1.0.2.1.1.0-2.jar:1.1.0.2.1.1.0-2]&lt;/P&gt;&lt;P&gt; 
at
org.apache.nifi.processors.standard.AbstractListProcessor.onTrigger(AbstractListProcessor.java:341)
~[nifi-standard-processors-1.1.0.2.1.1.0-2.jar:1.1.0.2.1.1.0-2]&lt;/P&gt;&lt;P&gt; 
at
org.apache.nifi.processor.AbstractProcessor.onTrigger(AbstractProcessor.java:27)
[nifi-api-1.1.0.2.1.1.0-2.jar:1.1.0.2.1.1.0-2]&lt;/P&gt;&lt;P&gt; 
at org.apache.nifi.controller.StandardProcessorNode.onTrigger(StandardProcessorNode.java:1099)
[nifi-framework-core-1.1.0.2.1.1.0-2.jar:1.1.0.2.1.1.0-2]&lt;/P&gt;&lt;P&gt; 
at
org.apache.nifi.controller.tasks.ContinuallyRunProcessorTask.call(ContinuallyRunProcessorTask.java:136)
[nifi-framework-core-1.1.0.2.1.1.0-2.jar:1.1.0.2.1.1.0-2]&lt;/P&gt;&lt;P&gt; 
at
org.apache.nifi.controller.tasks.ContinuallyRunProcessorTask.call(ContinuallyRunProcessorTask.java:47)
[nifi-framework-core-1.1.0.2.1.1.0-2.jar:1.1.0.2.1.1.0-2]&lt;/P&gt;&lt;P&gt; 
at org.apache.nifi.controller.scheduling.TimerDrivenSchedulingAgent$1.run(TimerDrivenSchedulingAgent.java:132)
[nifi-framework-core-1.1.0.2.1.1.0-2.jar:1.1.0.2.1.1.0-2]&lt;/P&gt;&lt;P&gt; 
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
[na:1.8.0_77]&lt;/P&gt;&lt;P&gt; 
at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:308)
[na:1.8.0_77]&lt;/P&gt;&lt;P&gt; 
at
java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:180)
[na:1.8.0_77]&lt;/P&gt;&lt;P&gt; 
 at
java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:294)
[na:1.8.0_77]&lt;/P&gt;&lt;P&gt; 
at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
[na:1.8.0_77]&lt;/P&gt;&lt;P&gt; 
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
[na:1.8.0_77]&lt;/P&gt;&lt;P&gt; 
at java.lang.Thread.run(Thread.java:745) [na:1.8.0_77]&lt;/P&gt;&lt;P&gt;Caused by:
com.jcraft.jsch.JSchException: timeout: socket is not established&lt;/P&gt;&lt;P&gt; 
at com.jcraft.jsch.Util.createSocket(Util.java:394) ~[jsch-0.1.54.jar:na]&lt;/P&gt;&lt;P&gt; 
at com.jcraft.jsch.Session.connect(Session.java:215) ~[jsch-0.1.54.jar:na]&lt;/P&gt;&lt;P&gt; 
at com.jcraft.jsch.Session.connect(Session.java:183) ~[jsch-0.1.54.jar:na]&lt;/P&gt;&lt;P&gt; 
at
org.apache.nifi.processors.standard.util.SFTPTransfer.getChannel(SFTPTransfer.java:433)
~[nifi-standard-processors-1.1.0.2.1.1.0-2.jar:1.1.0.2.1.1.0-2]&lt;/P&gt;&lt;P&gt;... 16 common frames omitted&lt;/P&gt;&lt;P&gt;My Configuration &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="14848-listsftp4.png" style="width: 1008px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/16672i7BE297343DE4937A/image-size/medium?v=v2&amp;amp;px=400" role="button" title="14848-listsftp4.png" alt="14848-listsftp4.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I have tried to test the conn from nifi server with following command &lt;/P&gt;&lt;P&gt;sftp -o "IdentityFile=/etc/nifi-resources/keys/private_key_DWU_20140909.ppk"
-oPort=2222 &lt;A href="mailto:wftpb086@147.29.151.71" rel="nofollow noopener noreferrer" target="_blank"&gt;wftpb086@147.29.151.71&lt;/A&gt;&lt;/P&gt;&lt;P&gt;but there is no connection.&lt;/P&gt;&lt;P&gt;I am not sure if it is my configuration in nifi or it is a firewall issue can anyone verify my nifi configuration. &lt;/P&gt;&lt;P&gt;the private key path refers to my /etc/nifi-resources/keys/private_key_DWU_20140909.ppk file&lt;/P&gt;</description>
      <pubDate>Sun, 18 Aug 2019 03:59:46 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/listSFTP-Failed-to-obtain-connection-to-remote-host-due-to/m-p/211206#M60023</guid>
      <dc:creator>simon_jespersen</dc:creator>
      <dc:date>2019-08-18T03:59:46Z</dc:date>
    </item>
    <item>
      <title>Re: listSFTP  Failed to obtain connection to remote host due to com.jcraft.jsch.JSchException: timeout: socket is not established</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/listSFTP-Failed-to-obtain-connection-to-remote-host-due-to/m-p/211207#M60024</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/16412/simonjespersen.html" nodeid="16412"&gt;@Simon Jespersen&lt;/A&gt;
&lt;/P&gt;&lt;P&gt;If you cannot get this to work outside of NiFi, it is not going to work inside of NiFi either.&lt;/P&gt;&lt;P&gt;But looking over your statement above, I see a couple things...&lt;/P&gt;&lt;P&gt;1. You are trying to use a "ppk" file.  This is a Putty Private Key which is not going to be supported by SFTP. You should be using a private key in pem format.&lt;/P&gt;&lt;P&gt;2. SSH is very particular about permissions set on private keys.  SSH will reject the key if the permissions are to open.  Once you have you pem key make a copy of it for your NiFi application and make sure that copy is owned by the user running NiFi.  The permissions also must be 600 on the private key.&lt;/P&gt;&lt;PRE&gt;nifi.root 770 (-rwxrwx---) will not be accepted by SSH

nifi.root 600 (-rw-------) will be accepted.&lt;/PRE&gt;&lt;P&gt;You can't grant groups access to your private key.&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Matt&lt;/P&gt;</description>
      <pubDate>Wed, 26 Apr 2017 04:22:16 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/listSFTP-Failed-to-obtain-connection-to-remote-host-due-to/m-p/211207#M60024</guid>
      <dc:creator>MattWho</dc:creator>
      <dc:date>2017-04-26T04:22:16Z</dc:date>
    </item>
    <item>
      <title>Re: listSFTP  Failed to obtain connection to remote host due to com.jcraft.jsch.JSchException: timeout: socket is not established</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/listSFTP-Failed-to-obtain-connection-to-remote-host-due-to/m-p/211208#M60025</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/16412/simonjespersen.html" nodeid="16412"&gt;@Simon Jespersen&lt;/A&gt; &lt;/P&gt;&lt;P&gt;Try using -vvv on your sftp command outside of NIFi to get more detail on why it is not working:
&lt;/P&gt;&lt;PRE&gt;sftp -vvv -i "IdentityFile=/etc/nifi-resources/keys/&amp;lt;private_key.pem&amp;gt;" -oPort=2222 &lt;A href="mailto:wftpb086@147.29.151.71"&gt;wftpb086@147.29.151.71&lt;/A&gt;&lt;/PRE&gt;&lt;P&gt;&lt;A href="mailto:wftpb086@147.29.151.71"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Matt&lt;/P&gt;</description>
      <pubDate>Wed, 26 Apr 2017 04:22:17 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/listSFTP-Failed-to-obtain-connection-to-remote-host-due-to/m-p/211208#M60025</guid>
      <dc:creator>MattWho</dc:creator>
      <dc:date>2017-04-26T04:22:17Z</dc:date>
    </item>
    <item>
      <title>Re: listSFTP  Failed to obtain connection to remote host due to com.jcraft.jsch.JSchException: timeout: socket is not established</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/listSFTP-Failed-to-obtain-connection-to-remote-host-due-to/m-p/211209#M60026</link>
      <description>&lt;P&gt;Thank you very much Matt&lt;/P&gt;</description>
      <pubDate>Mon, 15 May 2017 13:24:02 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/listSFTP-Failed-to-obtain-connection-to-remote-host-due-to/m-p/211209#M60026</guid>
      <dc:creator>simon_jespersen</dc:creator>
      <dc:date>2017-05-15T13:24:02Z</dc:date>
    </item>
    <item>
      <title>Re: listSFTP  Failed to obtain connection to remote host due to com.jcraft.jsch.JSchException: timeout: socket is not established</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/listSFTP-Failed-to-obtain-connection-to-remote-host-due-to/m-p/211210#M60027</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I struggle several hours because everything was working fine from terminal on user nifi using my private key file with strictchecking.&lt;/P&gt;&lt;P&gt;However, the problem within nifi was that it use the JSch library that does not support sftp server using ed25519 protocol !&lt;/P&gt;&lt;P&gt;Solution was : change sftp server configuration or use login/password.&lt;/P&gt;&lt;P&gt;PS: thanks to nifi dev team, I love the tool&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Julien&lt;/P&gt;</description>
      <pubDate>Tue, 13 Nov 2018 02:07:02 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/listSFTP-Failed-to-obtain-connection-to-remote-host-due-to/m-p/211210#M60027</guid>
      <dc:creator>julienlaurencea</dc:creator>
      <dc:date>2018-11-13T02:07:02Z</dc:date>
    </item>
    <item>
      <title>Re: listSFTP  Failed to obtain connection to remote host due to com.jcraft.jsch.JSchException: timeout: socket is not established</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/listSFTP-Failed-to-obtain-connection-to-remote-host-due-to/m-p/211211#M60028</link>
      <description>&lt;A rel="user" href="https://community.cloudera.com/users/99362/julienlaurenceau.html" nodeid="99362"&gt;@julien laurenceau&lt;/A&gt;&lt;P&gt;what do you mean change sftp server configuration ? I am having the same issue&lt;/P&gt;</description>
      <pubDate>Wed, 21 Nov 2018 06:05:28 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/listSFTP-Failed-to-obtain-connection-to-remote-host-due-to/m-p/211211#M60028</guid>
      <dc:creator>garunkumar85</dc:creator>
      <dc:date>2018-11-21T06:05:28Z</dc:date>
    </item>
    <item>
      <title>Re: listSFTP  Failed to obtain connection to remote host due to com.jcraft.jsch.JSchException: timeout: socket is not established</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/listSFTP-Failed-to-obtain-connection-to-remote-host-due-to/m-p/211212#M60029</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;There is currently no solution other than to swith back to rsa authent. In addition this library won't work if you try to use rsa with custom key length (I tried 4096 and it failed).&lt;/P&gt;&lt;P&gt;You have to edit the ssh_config on the sftp server in order to disable ed25519 (or at least set rsa with a higher priority)&lt;/P&gt;&lt;P&gt;I invite you to watch the ticket on nifi's JIRA &lt;A href="https://issues.apache.org/jira/browse/NIFI-5816" target="_blank"&gt;https://issues.apache.org/jira/browse/NIFI-5816&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;</description>
      <pubDate>Wed, 21 Nov 2018 18:40:02 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/listSFTP-Failed-to-obtain-connection-to-remote-host-due-to/m-p/211212#M60029</guid>
      <dc:creator>julienlaurencea</dc:creator>
      <dc:date>2018-11-21T18:40:02Z</dc:date>
    </item>
  </channel>
</rss>

