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

python - Operations inside variables -

Generic Map Parameter java -

arrays - What causes a java.lang.ArrayIndexOutOfBoundsException and how do I prevent it? -