Table of Contents

Constructor KnownHostsEntry

Namespace
SshSharp.Config
Assembly
SshSharp.dll

KnownHostsEntry(string, string, ReadOnlyMemory<byte>, KnownHostsMarker, string?)

Creates an entry.

public KnownHostsEntry(string hostPatterns, string keyType, ReadOnlyMemory<byte> publicKey, KnownHostsMarker marker = KnownHostsMarker.None, string? comment = null)

Parameters

hostPatterns string

Comma-separated host patterns, or a single hashed host (|1|salt|hash).

keyType string

The key type, for example ssh-ed25519.

publicKey ReadOnlyMemory<byte>

The public key blob (the decoded base64 field).

marker KnownHostsMarker

The optional marker.

comment string

The optional trailing comment.