title: Php ssh2_auth_password authentication failed
body: <p>My php script generates an excel file, and I'd like this file to be transfered on our files server, which is different from the web one.</p>
  
  <p>I'm using the ssh2_auth_password() function, but I'm stuck with the <code>Warning: ssh2_auth_password() [function.ssh2-auth-password]: Authentication failed for root using password</code> message.</p>
  
  <p>Most of time, this issue is fixed by changing the line <code>PasswordAuthentication yes</code> on the sshd_config file. This is done and confirmed by the function <code>ssh2_auth_none()</code> which returns an array containing : "0: publickey, 1: password, 2: keyboard-interactive"</p>
  
  <p>When I execute the operation by putty (typing <code>scp /srv/www/htdocs/**** root@192.168.168.1:/***/***</code>), and giving the password, it works.</p>
  
  <p>Any ideas ?</p>