So i am removing into a old server running a old IBM OS and GUI when i go to log in I run command:
$ssh->write("username\n");
$ssh->write("Passw0rd");
However it just outputs
Type Your ID username
Type your Password
Its as if the \n never worked.