in reply to Re^4: net::ssh2 connection
in thread net::ssh2 connection

But why would the server then accept the key just fine?

syphilis: wouldn't both c != '\n' and c != 10 effectively test the same thing?

Replies are listed 'Best First'.
Re^6: net::ssh2 connection
by syphilis (Archbishop) on Nov 04, 2008 at 17:47 UTC
    wouldn't both c != '\n' and c != 10 effectively test the same thing?

    Aaah ... yes, I'm losing the plot. (Somehow I had managed to prove to myself that both '\r' and '\n' were 0x0D .... damned if I can reproduce that work of inspired genius now, though :-)

    Cheers,
    Rob