This project is read-only.

how to use KeyboardInteractive

Nov 9, 2011 at 8:16 AM

My server don't support PasswordAuthentication

so my client need to support KeyboardInteractive

can somebody show me a demo

thks very much!

Nov 10, 2011 at 2:30 PM

Sorry for delay in response, busy with other project now.

 

Here is an example I have now:

            var connectionInfo = new KeyboardInteractiveConnectionInfo("host", "username");
            connectionInfo.AuthenticationPrompt += delegate(object sender, AuthenticationPromptEventArgs e)
            {
                Console.WriteLine(e.Instruction);

                foreach (var prompt in e.Prompts)
                {
                    Console.WriteLine(prompt.Request);
                    prompt.Response = Console.ReadLine();
                }
            };

If you have any further questions I could answer them probably some time later next week as I should wrap up with this project by then.

 

Thanks,

Oleg

Nov 11, 2011 at 5:17 AM

thks to Oleg, I got it