title: Can't execute ssh from php
body: <p>I can't seem to execute the ssh command from any of the PHP functions like <code>exec</code>, <code>system</code>, <code>passthru</code> etc..</p>
  
  <p>I've even tried <code>/bin/ssh</code> however no output is displayed</p>
  
  <p>Any ideas? I can confirm that by doing "<code>su - www-data</code>" and then trying ssh works, meaning that the apache user has access to ssh..</p>
  
  <p>Thanks</p>
  
  <p>Update: Sorry everything, it appears that ssh is being run ok, it's the remote commands that arn't running. Example:</p>
  
  <pre><code>$remote_command = "/usr/bin/ssh -i /home/www-data/id_rsa testuser@10.0.1.10 'echo hi &gt; /home/testuser/test'";
  passthru($remote_command);
  </code></pre>
  
  <p>I am seeing traffic on the remote server, however the new file "test" isn't being created..</p>