SshPublicKey Class
Namespace: Rebex.Net
Assembly: Rebex.Networking.dll (version 7.0.9147)
Represents SSH public key (RSA, DSA, ECDSA, EdDSA or X.509 certificate).
Syntax
public class SshPublicKey
Inherited Members
Constructors
Name | Description |
---|---|
Ssh |
Creates a certificate-based SSH key for use with SSH/SFTP client that support X.509 certificate authentication. |
Ssh |
Creates a certificate-based SSH key for use with SSH/SFTP client that support X.509 certificate authentication. |
Ssh |
Creates an SSH public key based on the specified asymmetric algorithm object. |
Ssh |
Creates an SSH public key based on the specified Public |
Ssh |
Loads a SSH2 public key from the specified raw data. |
Ssh |
Loads an SSH2 public key from the specified stream. |
Ssh |
Creates an SSH public key based on the specified Asymmetric |
Ssh |
Loads an SSH2 public key from the specified file. |
Properties
Name | Description |
---|---|
Comment | Gets or sets the key comment. The comment is used while saving in some formats. |
Fingerprint | Gets the public key fingerprint. |
Key |
Gets the key algorithm. |
Key |
Gets the key algorithm ID |
Key |
Gets the key size, in bits. |
Methods
Name | Description |
---|---|
Equals(Ssh |
Determines whether the specified key is the same key as the specified key. |
Equals(Object) | Determines whether the specified object is the same key as the specified key. |
Get |
Returns the underlying X509 certificate. |
Get |
Returns the underlying X509 certificate and its chain (for certificate-based keys). |
Get |
Gets the DSA parameters for a DSA key. May only be used for DSA public keys. |
Get |
A hash function for this type. |
Get |
Gets the public key in SSH format (or raw X.509 data of the leaf certificate). |
Get |
Returns the public key info for this key. |
Get |
Gets the RSA parameters for a RSA key. May only be used for RSA public keys. |
Load |
Loads public keys in ~/.ssh/authorized_keys file format. |
Load |
Loads public keys in ~/.ssh/authorized_keys file format. |
Parse(String) | Parses a single SSH public key in ~/.ssh/authorized_keys format. |
Save |
Saves the public key into the supplied stream in Base64-encoded SSH2 public key format. |
Save |
Saves the public key into the supplied stream in the specified format. |
Save |
Saves the public key into the supplied stream in Base64-encoded SSH2 public key format. |
Save |
Saves the public key into the supplied stream in the specified format. |