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

New Post: telnet

$
0
0
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:
  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!

Viewing all articles
Browse latest Browse all 1729

Trending Articles



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