When communicating over SSH with Cisco IOS, an exception occurs when more than one request is made using the SshExec.RunCommand method. To successfully reproduce one has to add a Thread.Sleep call after the RunCommand call. If not the entire application using SharpSSH hangs. One request runs ok.
I'm running the commands in batch (no delay except for the Thread.Sleep).
Exception:
Unhandled Exception: Tamir.SharpSsh.jsch.JSchException: session is down
at Tamir.SharpSsh.jsch.Session.openChannel(String type)
at Tamir.SharpSsh.SshExec.GetChannelExec(String command)
at Tamir.SharpSsh.SshExec.RunCommand(String command, String& StdOut, String&
StdErr)
Regards,
Bjørn Terje Svennes (bsvennes<nospm_remove>@online.no)