Paul,
I'm too lazy to debug your code, as you are taking a different approach to communication than I did/do. I try to modularize it a bit so I don't get lost! :) I imagine you are at the 'just make it work and I'll make it pretty later' stage... So to help get you out of a rut, this is a copy of an earlier post to someone doing the same things as you. My example is also in VB.NET:
pat
:)
I'm too lazy to debug your code, as you are taking a different approach to communication than I did/do. I try to modularize it a bit so I don't get lost! :) I imagine you are at the 'just make it work and I'll make it pretty later' stage... So to help get you out of a rut, this is a copy of an earlier post to someone doing the same things as you. My example is also in VB.NET:
In working with Cisco equipment, for example, I found that you had to be careful about when to issue CR, LF, CRLF, or even nothing! To help others extend renci, I wrote a short blog article on how to wrap commands/messages sent.Let me know if this gets you out of your rut & moving again!
At first I added the necessary variations to the source (didn't I post that a while ago as a suggestion?), but when new source was coming out without the subtle inclusions, I had to wrap it to do the same thing.
Maybe it will help you...?
All around, best ssh app/library out there, IMHO... :)
pat
:)