Table of Contents

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

DateTimeOffset?

GatewayHost

Gateway host to connect to.

public required string GatewayHost { get; init; }

Property Value

string

GatewayPort

Gateway port to connect to.

public required int GatewayPort { get; init; }

Property Value

int

GatewayScheme

Gateway scheme, http or https.

public required string GatewayScheme { get; init; }

Property Value

string

HostKeyFingerprint

Host key fingerprint to pin, when the gateway provides one.

public string? HostKeyFingerprint { get; init; }

Property Value

string

SandboxId

Id of the sandbox the session targets.

public required string SandboxId { get; init; }

Property Value

string

Token

Session token; treat as a secret.

public required string Token { get; init; }

Property Value

string

Methods

ToString()

Describes the session with the token redacted.

public override string ToString()

Returns

string