When attempting to connect to a server which requires keyboard interactive authentication the following error occurs:
No SSH key file selected, using password auth instead.
Please enter password:
Failed to authenticate using password, falling back to next auth mechanism if available.
Unhandled Exception: System.ArgumentNullException: String reference not set to an instance of a String.
Parameter name: s
at Renci.SshNet.KeyboardInteractiveAuthenticationMethod.Authenticate(Session session)
at Renci.SshNet.AuthenticationMethod.Renci.SshNet.IAuthenticationMethod.Authenticate(ISession session)
at Renci.SshNet.ClientAuthentication.TryAuthenticate(ISession session, AuthenticationState authenticationState, String[] allowedAuthenticationMethods, SshAuthenticationException& authenticationException)
at Renci.SshNet.ClientAuthentication.Authenticate(IConnectionInfoInternal connectionInfo, ISession session)
at Renci.SshNet.ConnectionInfo.Authenticate(ISession session, IServiceFactory serviceFactory)
at Renci.SshNet.Session.Connect()
at Renci.SshNet.BaseClient.Connect()
at SSHFS.CLI.Program.AttemptConnection(String authType, ConnectionInfo connInfo, String path) in C:\projects\win-sshfs\Sshfs\SSHFS.CLI\Program.cs:line 160
at SSHFS.CLI.Program.<>c__DisplayClass1_0.<Start>b__0(ValueTuple`2 auth) in C:\projects\win-sshfs\Sshfs\SSHFS.CLI\Program.cs:line 79
at System.Linq.Enumerable.WhereSelectListIterator`2.MoveNext()
at System.Linq.Enumerable.FirstOrDefault[TSource](IEnumerable`1 source, Func`2 predicate)
at SSHFS.CLI.Program.Start(Options options) in C:\projects\win-sshfs\Sshfs\SSHFS.CLI\Program.cs:line 78
at CommandLine.ParserResultExtensions.WithParsed[T](ParserResult`1 result, Action`1 action)
at SSHFS.CLI.Program.Main(String[] args) in C:\projects\win-sshfs\Sshfs\SSHFS.CLI\Program.cs:line 70
When attempting to connect to a server which requires keyboard interactive authentication the following error occurs: