title: phpseclib SSH2 login works on command line, not through service
body: <p>I puzzled why the same php script works on the command line, but not when the php script is run as a service on Debian.</p>
  
  <p>This is the code that doesn't work as a service-php-script:</p>
  
  <pre><code>$ssh = new Net_SSH2("localhost", $port);
  if($ssh-&gt;login("loginname", "password"))
  {
     // success
  }
  else
  {
     // failed
  }
  </code></pre>
  
  <p>I'm guessing it has to do with rights permissions, but I couldn't find anything about giving the systemd/service the rights to use the phpseclib SSH2 login.</p>
  
  <p>Thank you for any feedback!</p>