Method GetPublicKey
- Namespace
- SshSharp
- Assembly
- SshSharp.dll
GetPublicKey()
PublicKey as an SshPublicKey, to compare with a key you hold (hostKey.GetPublicKey() == expected),
write as a line, or fingerprint with another hash. For a host certificate it is the certified key, as PublicKey is.
public SshPublicKey GetPublicKey()
Returns
Exceptions
- FormatException
PublicKey is not a key SshPublicKey reads (only possible for a host key made by hand).