Constructor KnownHostsEntry
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
hostPatternsstringComma-separated host patterns, or a single hashed host (
|1|salt|hash).keyTypestringThe key type, for example
ssh-ed25519.publicKeyReadOnlyMemory<byte>The public key blob (the decoded base64 field).
markerKnownHostsMarkerThe optional marker.
commentstringThe optional trailing comment.