<?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 How to run a simple shell command on a remote linux machine using executeprocess in NiFi in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-run-a-simple-shell-command-on-a-remote-linux-machine/m-p/224927#M63561</link>
    <description>&lt;P&gt;We have configured password-less ssh onto our edge node. From one of my NiFi instance, I am able to ssh into the edge node by using this simple command&lt;/P&gt;&lt;PRE&gt;ssh username@edge-node-hostname
&lt;/PRE&gt;&lt;P&gt;When i try this similar command using execute process. I am running into error.&lt;/P&gt;&lt;P&gt;error :&lt;EM&gt; "host key verification failed"&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;error : &lt;EM&gt;"Pseudo-Terminal will not be allocated because stdin is not a terminal"&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;error : No Such file or directory.&lt;/P&gt;&lt;P&gt;these are the arguments, which i have passed in the executeProcess, Let me know where I am doing wrong. Any documentation related to this with example will also help.&lt;/P&gt;&lt;P&gt;Command : sh&lt;/P&gt;&lt;P&gt;command arguments : ssh username@edge-node-hostname&lt;/P&gt;</description>
    <pubDate>Fri, 23 Jun 2017 14:26:44 GMT</pubDate>
    <dc:creator>subash_sharma</dc:creator>
    <dc:date>2017-06-23T14:26:44Z</dc:date>
    <item>
      <title>How to run a simple shell command on a remote linux machine using executeprocess in NiFi</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-run-a-simple-shell-command-on-a-remote-linux-machine/m-p/224927#M63561</link>
      <description>&lt;P&gt;We have configured password-less ssh onto our edge node. From one of my NiFi instance, I am able to ssh into the edge node by using this simple command&lt;/P&gt;&lt;PRE&gt;ssh username@edge-node-hostname
&lt;/PRE&gt;&lt;P&gt;When i try this similar command using execute process. I am running into error.&lt;/P&gt;&lt;P&gt;error :&lt;EM&gt; "host key verification failed"&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;error : &lt;EM&gt;"Pseudo-Terminal will not be allocated because stdin is not a terminal"&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;error : No Such file or directory.&lt;/P&gt;&lt;P&gt;these are the arguments, which i have passed in the executeProcess, Let me know where I am doing wrong. Any documentation related to this with example will also help.&lt;/P&gt;&lt;P&gt;Command : sh&lt;/P&gt;&lt;P&gt;command arguments : ssh username@edge-node-hostname&lt;/P&gt;</description>
      <pubDate>Fri, 23 Jun 2017 14:26:44 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-run-a-simple-shell-command-on-a-remote-linux-machine/m-p/224927#M63561</guid>
      <dc:creator>subash_sharma</dc:creator>
      <dc:date>2017-06-23T14:26:44Z</dc:date>
    </item>
    <item>
      <title>Re: How to run a simple shell command on a remote linux machine using executeprocess in NiFi</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-run-a-simple-shell-command-on-a-remote-linux-machine/m-p/224928#M63562</link>
      <description>&lt;P&gt;@&lt;A href="https://community.hortonworks.com/users/14607/subashsharma.html"&gt;subash sharma&lt;/A&gt; The error messages you are seeing shows some issues with ssh configurations. &lt;/P&gt;&lt;UL&gt;
&lt;LI&gt;error :&lt;EM&gt; "host key verification failed"&lt;/EM&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;This error message shows that the ssh client is not able to verify 'edge-node-hostname'. It is possible that the entry for 'edge-node-hostname' is not available in the &lt;EM&gt;known_hosts&lt;/EM&gt; file located in the home directory of the user you are running NiFi as. If you are running NiFi as root, check the &lt;EM&gt;known_hosts&lt;/EM&gt; file in /root/.ssh/known_hosts. And if NiFi is running as a non-root user, check the '.ssh/known_hosts' files in the home directory of that user. &lt;/P&gt;&lt;P&gt;You can also run the following command which would then ask you for a confirmation in yes/no input format to add the entry of the 'edge-node-hostname' in the &lt;EM&gt;known_hosts &lt;/EM&gt;file.&lt;/P&gt;&lt;PRE&gt;sudo -u &amp;lt;NiFi_user&amp;gt; ssh username@edge-node-hostname&lt;/PRE&gt;&lt;UL&gt;
&lt;LI&gt;error : &lt;EM&gt;"Pseudo-Terminal will not be allocated because stdin is not a terminal"&lt;/EM&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;This error message is because you are just trying to obtain a remote shell in the executeProcess processor which is not possible. You can either add a command to be run after ssh succeeds or you can add -t -t arguments to ssh command which should help. &lt;/P&gt;&lt;PRE&gt; ssh username@edge-node-hostname date
&lt;/PRE&gt;&lt;P&gt;OR &lt;/P&gt;&lt;PRE&gt;ssh -t -t username@edge-node-hostname&lt;/PRE&gt;</description>
      <pubDate>Fri, 23 Jun 2017 17:59:43 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-run-a-simple-shell-command-on-a-remote-linux-machine/m-p/224928#M63562</guid>
      <dc:creator>Schandhok</dc:creator>
      <dc:date>2017-06-23T17:59:43Z</dc:date>
    </item>
  </channel>
</rss>

