how to use KeyboardInteractive

Nov 9, 2011 at 7: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 1: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)

                foreach (var prompt in e.Prompts)
                    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.




Nov 11, 2011 at 4:17 AM

thks to Oleg, I got it