0 votes
by (360 points)
edited

The terminal prompt is "login as" , without the quotes.

I am using the following code, to log into the terminal.

On executing the program , I am seeing an error , "Could not automatically detect prompt"

            var sshVar = new Ssh();
            sshVar.Connect(hostip);

            sshVar.Login("userid", "pwd");

            // create a new instance of VirtualTerminal
            // (creates an SSH shell session)
            VirtualTerminal terminal = sshVar.StartVirtualTerminal();

            Scripting script = terminal.Scripting;
            script.DetectPrompt();

Please let me know what should be done.

Sujay

1 Answer

0 votes
by (15.2k points)
edited

Hello, let's continue in the other thread you created since both are exactly same questions.

Other thread link: http://forum.rebex.net/questions/4757/prompt-string-not-being-detected-by-detectprompt

...