Table of Contents

Class SshGssapiOptions

Namespace
SshSharp
Assembly
SshSharp.dll

Kerberos authentication (gssapi-with-mic, RFC 4462; ssh's GSSAPIAuthentication yes), set on Gssapi. The ticket comes from the platform: the logon session on Windows (SSPI), the credential cache (kinit) elsewhere (MIT or Heimdal GSS-API). Needs .NET 10; on .NET 8 the method is not offered.

public sealed class SshGssapiOptions
Inheritance
SshGssapiOptions
Inherited Members

Properties

Credential

Explicit credentials (user, password and realm) instead of the current ticket; null to use the ticket cache or logon session.

DelegateCredentials

Forwards the Kerberos ticket to the server (ssh's GSSAPIDelegateCredentials yes), so programs there can authenticate onward as you. Off by default: only delegate to servers you trust.

IsSupported

Whether this build can authenticate with Kerberos: true on .NET 10, false on .NET 8.

TargetHost

The host name of the server's service principal (host/<name>@REALM). Null for the host name connected to; set it when connecting over a stream or by address, since Kerberos names the service by its DNS name.