Quantcast
Channel: sshnet Discussions Rss Feed
Viewing all articles
Browse latest Browse all 1729

New Post: How to use ShellStream class ?

$
0
0
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.

Viewing all articles
Browse latest Browse all 1729

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>