[][src]Trait ssh2::KeyboardInteractivePrompt

pub trait KeyboardInteractivePrompt {
    fn prompt<'a>(
        &mut self,
        username: &str,
        instructions: &str,
        prompts: &[Prompt<'a>]
    ) -> Vec<String>; }

Called by libssh2 to respond to some number of challenges as part of keyboard interactive authentication.

Required methods

fn prompt<'a>(
    &mut self,
    username: &str,
    instructions: &str,
    prompts: &[Prompt<'a>]
) -> Vec<String>

username is the user name to be authenticated. It may not be the same as the username passed to Session::userauth_keyboard_interactive, and may be empty. instructions is some informational text to be displayed to the user. prompts is a series of prompts (or challenges) that must be responded to. The return value should be a Vec that holds one response for each prompt.

Loading content...

Implementors

Loading content...