SshPublicKey.SavePublicKey Method
Namespace: Rebex.Net
Assembly: Rebex.Networking.dll (version 7.0.9083)
SavePublicKey(String)
Saves the public key into the supplied stream in Base64-encoded SSH2 public key format.
Declaration
public void SavePublicKey(string path)
Parameters
Type | Name | Description |
---|---|---|
String | path | A path to a file to which to save the public key. |
SavePublicKey(String, SshPublicKeyFormat)
Saves the public key into the supplied stream in the specified format.
Declaration
public void SavePublicKey(string path, SshPublicKeyFormat format)
Parameters
Type | Name | Description |
---|---|---|
String | path | A path to a file to which to save the public key. |
SshPublicKeyFormat | format | Public key file format. |
SavePublicKey(Stream)
Saves the public key into the supplied stream in Base64-encoded SSH2 public key format.
Declaration
public void SavePublicKey(Stream output)
Parameters
Type | Name | Description |
---|---|---|
Stream | output | A stream to which to save the public key. |
SavePublicKey(Stream, SshPublicKeyFormat)
Saves the public key into the supplied stream in the specified format.
Declaration
public void SavePublicKey(Stream output, SshPublicKeyFormat format)
Parameters
Type | Name | Description |
---|---|---|
Stream | output | A stream to which to save the public key. |
SshPublicKeyFormat | format | Public key file format. |