Method Parse
- Namespace
- SshSharp
- Assembly
- SshSharp.dll
Parse(string, string?)
Parses a private key.
public static SshPrivateKey Parse(string text, string? passphrase = null)
Parameters
textstringThe key file's contents.
passphrasestringThe passphrase of an encrypted key; ignored for unencrypted keys.
Returns
Exceptions
- FormatException
The text is not a supported private key, or the passphrase is wrong or missing.