Problem with DetectPrompt

0 votes
asked Sep 29, 2014 by sujayghosh (360 points)
edited Sep 30, 2014

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
answered Sep 30, 2014 by Pavel Matyska (15,060 points)
edited Sep 30, 2014

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

...