Here are two places where behavior of executing a command via connection.execute is different from executing it at the actual shell, causing trouble:<br><br><br>1) I can run this command fine at the actual shell of one of my node, when logged in as root:<br>
<br>   su gotdata -c &quot;ssh -f -N -L 27017:localhost:27017 <a href="mailto:gotdata@ec2-184-73-101-141.compute-1.amazonaws.com">gotdata@ec2-184-73-101-141.compute-1.amazonaws.com</a>&quot;<br><br>It runs, returns without  blocking, doing exactly what I want (establishing an ssh tunnel from one node to another on port 27017).  <br>
<br>But when I try to execute this command over the execute method in the starcluster shell, it DOES block: <br><br>   solr_conn.execute(&#39;su gotdata -c &quot;ssh -f -N -L 27017:localhost:27017 <a href="mailto:gotdata@ec2-184-73-101-141.compute-1.amazonaws.com">gotdata@ec2-184-73-101-141.compute-1.amazonaws.com</a>&quot;&#39;)<br>
<br>... and only returns when I manually kill the ssh tunnel that it starts.    What should I do to get what I want?<br><br><br>2) The same command, minus the su part, runs fine at the actual shell:<br><br>   ssh -f -N -L 27017:localhost:27017 <a href="mailto:gotdata@ec2-184-73-101-141.compute-1.amazonaws.com">gotdata@ec2-184-73-101-141.compute-1.amazonaws.com</a><br>
<br>but when I run this command via the execute method, it fails:<br><br>   In [31]: solr_conn.execute(&#39;ssh -f -N -L 27017:localhost:27017 <a href="mailto:gotdata@ec2-184-73-101-141.compute-1.amazonaws.com">gotdata@ec2-184-73-101-141.compute-1.amazonaws.com</a>&#39;)<br>
   Out[31]: [&#39;Host key verification failed.&#39;]<br><br>Why is the behavior different? <br><br><br>Thanks,<br>Dan<br><br>