wodKeys Component - PublicKeySSH Property
      
 

Description

Returns public key in SSH format


Property type

A String value.  


Syntax

object.PublicKeySSH(KeyType)



The PublicKeySSH 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

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

---- BEGIN SSH2 PUBLIC KEY ----
AAAAB3NzaC1kc3MAAACBAKzHYPgw/VvUWHooW0iyKYPYVfaTZSDlHZaUEsHOAvdln+6aQw
..........
oRi1V/3n//AAypdXkAN8BSBrsb4V4AVdzHpvXSdHh9C+TlRUH1Ls72Kl929+4jMZmWDXGw
O5ns8NPAJZvOxnZKZA==
---- END SSH2 PUBLIC KEY ----

You can easily paste contents of this property to file on your server system that keeps public keys.