title: How do I invoke Smartbear ssh from my application without root?
body: <p>I am trying to invoke <code>ssh</code> from my C++ NDK application via <code>popen()</code> on a command that does <code>ssh</code> which works fine on other platforms.  On Android I get an error when reading the pipe:</p>
  
  <pre><code>sh: ssh: not found
  </code></pre>
  
  <p>Therefore, I used the full pathname to the Smartbear <code>ssh</code> I have installed, but it still fails:</p>
  
  <pre><code>sh: /data/data/berserker.android.apps.sshdroid/dropbear/ssh: not found
  </code></pre>
  
  <p>I then tried from an ADB shell but that command only works if I first <code>su</code> to <code>root</code>. So I guess I don't have permission to see the file system where <code>ssh</code> is installed.  Can my app request <code>su</code> permissions, if so, what is the api, and will that resolve the failure to invoke <code>ssh</code>?</p>
  
  <p>How should I go about invoking <code>ssh</code> from my application via <code>popen()</code>?  How do I control the permissions and can I get <code>ssh</code> into the <code>PATH</code> somehow?  Can I install Smartbear in a different way so that root is not needed to access <code>ssh</code>?</p>