This section will describe how to establish connection using interactive authentication method. Use KeyboardInteractiveConnectionInfo to connect.
Use KeyboardInteractiveConnectionInfo to connect Some server support only interactive method of authentication, even if they still use username and password. For this scenario you must use T:Renci.SshNet.KeyboardInteractiveConnectionInfo object. For this case you need to handle E:Renci.SshNet.KeyboardInteractiveConnectionInfo.AuthenticationPrompt event. This event can be raised more then once if server needs to. For example, first time to ask you for yousername and second for the password but there could be other scenarious where more questions will need to be answered for authentication to complete.
T:Renci.SshNet.KeyboardInteractiveConnectionInfo T:Renci.SshNet.SshClient M:Renci.SshNet.SshBaseClient.Connect()