Table of Contents

Constructor SshHostKey

Namespace
SshSharp
Assembly
SshSharp.dll

SshHostKey(string, string, string, ReadOnlyMemory<byte>, int)

The host key the server proved possession of during key exchange. Decide whether to trust it in HostKeyVerifier.

public SshHostKey(string Algorithm, string KeyType, string Fingerprint, ReadOnlyMemory<byte> PublicKey, int KeySizeBits)

Parameters

Algorithm string

The negotiated signature algorithm, for example rsa-sha2-512.

KeyType string

The key type, for example ssh-rsa.

Fingerprint string

The OpenSSH-style SHA-256 fingerprint (SHA256:...).

PublicKey ReadOnlyMemory<byte>

The public key in SSH wire format, as stored in known_hosts after base64 decoding.

KeySizeBits int

The key size in bits.