After I SSH onto the server, I would like to telnet onto a specific machine. When I do this through putty, the command I use is "telnet host -l user" and then I am asked to input a password. This is what I currently have:
I am new to programming so please be patient.
Thank you in advance!
using (var ssh = new Renci.SshNet.SshClient(connectionInfo))
{
ssh.Connect();
var cmd = ssh.RunCommand("telnet host -l user");
}
The code hangs at the "RunCommand" line, presumably waiting for the password. How do I input the password?I am new to programming so please be patient.
Thank you in advance!