Back to product page

PublicKeyOpenSSH property


Returns public key in OpenSSH format.

Type

String

Syntax

  • C#
  • VB.NET
String PublicKeyOpenSSH {get; };

ReadOnly Property PublicKeyOpenSSH As String

Remarks

PublicKeyOpenSSH will return string information that represents stored public key in format suitable for OpenSSH servers. Typically, it will look like this:

ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAIEA8AYkMFyO5RLtAtWh5/NeveIh4vv6l/p1V5gKhfnj8uz36KrEEMn..............

You can easily paste contents of this property to file on your server system that keeps public keys. Usually, this is ~/.ssh/authorized_keys2 file.

Make sure you set PrivateKey property value before you try to obtain its public key part through this property.

Platforms

Windows