This project is read-only.

How to use ShellStream class ?

Jul 27, 2014 at 8:29 PM
Hi All,

can someone please post code or reference a link for an example on how to use the ShellStream class ?

I can attach to an SSH server, run some commands, display its results, but I need to go further.

Now, what I need to do is to wait for certain prompts in the server's response and supply answers. For instance, I want to telnet to a device from the SSH server and I need to make the logon interactive.

I can see ShellStream has an Expect(string text) method, I just need an example of how to use that.

Thanks in advance.