title: Parse "passwd" command with phpseclib
body: <p>I tried to parse "passwd" command to my machine with phpseclib but it can't go through the first password typing. Look at the code below.</p>
  
  <pre><code>$ssh-&gt;write("
      passwd $new_user\n
      $new_user_pw\n
      $new_user_pw\n 
  "); 
  $ssh-&gt;setTimeout(5);
  echo $ssh-&gt;read('root@machine:~$');
  </code></pre>
  
  <p>Output i got is:</p>
  
  <pre><code>Last login: Tue Jun 17 12:23:01 2014 from 109.175.60.43 [root@machine ~]# [root@machine ~]# [root@machine ~]# passwd 8917f498 Changing password for user 8917f498. New password: 
  </code></pre>
  
  <p>Or can I do this with another way?</p>
  
  <p>Thanks</p>