Provides connection information when keyboard interactive authentication method is used
Inheritance Hierarchy
Renci.SshNet ConnectionInfo
Renci.SshNet KeyboardInteractiveConnectionInfo
Namespace: Renci.SshNet
Assembly: Renci.SshNet (in Renci.SshNet.dll) Version: 0.1.0.0 (1.0.0.0)
Syntax
public class KeyboardInteractiveConnectionInfo : ConnectionInfo, IDisposable
Examples
var connectionInfo = new KeyboardInteractiveConnectionInfo(host, username); connectionInfo.AuthenticationPrompt += delegate(object sender, AuthenticationPromptEventArgs e) { System.Console.WriteLine(e.Instruction); foreach (var prompt in e.Prompts) { Console.WriteLine(prompt.Request); prompt.Response = Console.ReadLine(); } }; using (var client = new SftpClient(connectionInfo)) { client.Connect(); // Do something here client.Disconnect(); }
See Also