wodKeys Component - PublicKeyOpenSSH Property
      
 

Description

Returns public key in OpenSSH format


Property type

A String value.  


Syntax

object.PublicKeyOpenSSH(KeyType )



The PublicKeyOpenSSH Property syntax has these parts:

Part Description
object An expression evaluating to an object of type Keys.
KeyType Required. A SSHKeyTypes enumeration, as described in settings. Type of the key (RSA/DSA).

Settings

The settings for KeyType are:

Constant Value Description
 RSAkey 0 Returns RSA key.
 DSAkey 1 Returns DSA key.

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.