ssh - PHPSECLIB ssh2 \n not working -


so removing old server running old ibm os , gui when go log in run command:

$ssh->write("username\n"); $ssh->write("passw0rd"); 

however outputs

type id    username type password  

its if \n never worked.

the system in abstract way old windows machine. \n works on modern machines older windows use \r

using \r resolved issue.


Comments

Popular posts from this blog

ubuntu - PHP script to find files of certain extensions in a directory, returns populated array when run in browser, but empty array when run from terminal -

php - How can i create a user dashboard -

javascript - How to detect toggling of the fullscreen-toolbar in jQuery Mobile? -