Property PreferredAuthentications
- Namespace
- SshSharp
- Assembly
- SshSharp.dll
PreferredAuthentications
The authentication methods to try and their order, as ssh_config's PreferredAuthentications: any of
gssapi-with-mic, publickey, keyboard-interactive and password. A method that is left out is not tried,
even when its credentials are set. Null (the default) uses ssh's order: gssapi-with-mic (only with Gssapi),
publickey, keyboard-interactive, password. A method is tried only when the server offers it and its credentials
are set (PrivateKeys, Password, KeyboardInteractive, Gssapi).
public IReadOnlyList<string>? PreferredAuthentications { get; init; }
Property Value
Exceptions
- ArgumentException
A name is not one of the methods above (SshSharp does not implement
hostbased).