<PackageReference Include="SSH.NET" Version="2024.1.0" />

HostKeyEventArgs

public class HostKeyEventArgs : EventArgs
Provides data for the HostKeyReceived event.
public bool CanTrust { get; set; }

Gets or sets a value indicating whether host key can be trusted.

public byte[] FingerPrint { get; }

Gets the MD5 fingerprint.

public string FingerPrintMD5 { get; }

Gets the MD5 fingerprint of the host key in the same format as the ssh command, i.e. hexadecimal bytes separated by colons, but without the MD5: prefix.

public string FingerPrintSHA256 { get; }

Gets the SHA256 fingerprint of the host key in the same format as the ssh command, i.e. non-padded base64, but without the SHA256: prefix.

public byte[] HostKey { get; }

Gets the host key.

public string HostKeyName { get; }

Gets the host key name.

public int KeyLength { get; }

Gets the length of the key in bits.

Initializes a new instance of the HostKeyEventArgs class.