Is this possible from wodSSH .Net component - WeOnlyDo Discussion board

Is this possible from wodSSH .Net component (General questions)

by zubenelgenubi, Saturday, May 19, 2007, 22:23 (6397 days ago)

Hi,

Downloaded the sample code and it looks like it will work for me to get to a single host using SSH, great!

What I would like to do is:

-SSH to a public-address host (cisco device)
-From that Cisco Device, telnet to another Cisco device which is configured to require a Password with the prompt 'Password:'. I need to submit the password for the 2nd Cisco device and then...
-Telnet again to a 3rd device which requires username (prompt 'Username:') AND password (prompt 'Password:')
-Submit a command on this 3rd device
-Cleanly exit the 3rd device using command 'exit', which when submitted the device responds with 'Press any key to exit...' before it closes the connection. I assume I have to send a CR here.
-Cleanly exit the 2nd Cisco Device with a command 'exit'
-Cleanly exit the public-address host with a command 'exit'

I assume this is all possible. Can anyone provide any guidance/code snippets or correct my assumptions.

TIA

Charlie


Complete thread: