Class SshSession
- Namespace
- OpenShell
- Assembly
- OpenShell.Sdk.dll
A short-lived SSH relay session. The token is a credential and is redacted from ToString().
public sealed record SshSession : IEquatable<SshSession>
- Inheritance
-
SshSession
- Implements
- Inherited Members
Properties
ExpiresAt
Absolute expiry; null means none.
public DateTimeOffset? ExpiresAt { get; init; }
Property Value
GatewayHost
Gateway host to connect to.
public required string GatewayHost { get; init; }
Property Value
GatewayPort
Gateway port to connect to.
public required int GatewayPort { get; init; }
Property Value
GatewayScheme
Gateway scheme, http or https.
public required string GatewayScheme { get; init; }
Property Value
HostKeyFingerprint
Host key fingerprint to pin, when the gateway provides one.
public string? HostKeyFingerprint { get; init; }
Property Value
SandboxId
Id of the sandbox the session targets.
public required string SandboxId { get; init; }
Property Value
Token
Session token; treat as a secret.
public required string Token { get; init; }
Property Value
Methods
ToString()
Describes the session with the token redacted.
public override string ToString()