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
AlgorithmstringThe negotiated signature algorithm, for example
rsa-sha2-512.KeyTypestringThe key type, for example
ssh-rsa.FingerprintstringThe OpenSSH-style SHA-256 fingerprint (
SHA256:...).PublicKeyReadOnlyMemory<byte>The public key in SSH wire format, as stored in
known_hostsafter base64 decoding.KeySizeBitsintThe key size in bits.