I was going to post this on the SharpSSH project, but then I noticed you are actually actively updating it and thought I'd post there to see if you knew how. I'm trying to do a simple connection via SSH to a router, then run a series of commands on the same session on the router. I can't disconnect between commands otherwise it won't work. What I'm doing is this:
And I'm using the strOutput to save the output from them. But when I run it, I get a "session is down" exception from line 180 on the second RunCommand.
Any ideas?
Thanks
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I was going to post this on the SharpSSH project, but then I noticed you are actually actively updating it and thought I'd post there to see if you knew how. I'm trying to do a simple connection via SSH to a router, then run a series of commands on the same session on the router. I can't disconnect between commands otherwise it won't work. What I'm doing is this:
And I'm using the strOutput to save the output from them. But when I run it, I get a "session is down" exception from line 180 on the second RunCommand.
Any ideas?
Thanks
The exception was on line 180 of the Channel.cs file, mind went faster than I could type it.